Browse Source

Evolution #802: Page ad'accueil plus claire

Bastien Sevajol 11 years ago
parent
commit
e5391b3e47

+ 2 - 4
app/Resources/translations/text.fr.yml View File

199
       tour:           |
199
       tour:           |
200
                       "<h1>Filtres</h1>"+
200
                       "<h1>Filtres</h1>"+
201
                       "<p>Vous pouvez filtrer les partages à l'aide de tags.</p>"
201
                       "<p>Vous pouvez filtrer les partages à l'aide de tags.</p>"
202
-      notags:         |
203
-                      "<p>Sans tags, comme maintenant.</p>"
204
-      withtags:       |
205
-                      "<p>Ou avec tags !</p>"
202
+      tags:           |
203
+                      "<p>Vous pouvez saisir vos genres/styles musicaux préférés dans le filtre afin d'afficher les musiques correspondantes.</p>"
206
     
204
     
207
     network:
205
     network:
208
       tour:           |
206
       tour:           |

+ 1 - 0
app/Resources/translations/userui.en.yml View File

155
   submit:  Filtrer
155
   submit:  Filtrer
156
   clear:   Aucun filtre
156
   clear:   Aucun filtre
157
   mytags:  Avec filtre
157
   mytags:  Avec filtre
158
+  network_generic: Réseau
158
   network_all:   Réseau global
159
   network_all:   Réseau global
159
   network_my:    Mon réseau
160
   network_my:    Mon réseau
160
   new_comments:     Nvx commentaires
161
   new_comments:     Nvx commentaires

+ 5 - 0
app/Resources/translations/userui.fr.yml View File

174
   submit:  Filtrer
174
   submit:  Filtrer
175
   clear:   Aucun filtre
175
   clear:   Aucun filtre
176
   mytags:  Avec filtre
176
   mytags:  Avec filtre
177
+  network_generic: Réseau
177
   network_all:   Réseau global
178
   network_all:   Réseau global
178
   network_my:    Mon réseau
179
   network_my:    Mon réseau
179
   new_comments:     Nvx commentaires
180
   new_comments:     Nvx commentaires
180
   new_favoriteds:   Nvx favoris
181
   new_favoriteds:   Nvx favoris
181
   new_tags:         Propositions de tags
182
   new_tags:         Propositions de tags
182
   tag_strict:       Chaque tag doit être trouvé
183
   tag_strict:       Chaque tag doit être trouvé
184
+  help_text:        |
185
+                    Entrez ci-dessous les genre/styles de musiques que vous appréciez,
186
+                    une fois ces genres ajoutés en tant que "tags" vous pourrez filtrer les
187
+                    musiques partagés selon vos gouts !
183
   
188
   
184
 element_add:
189
 element_add:
185
   prop_tags:
190
   prop_tags:

+ 5 - 0
src/Muzich/CoreBundle/Controller/SearchController.php View File

80
         // On met a jour l'objet avec les nouveaux paramétres saisie dans le form
80
         // On met a jour l'objet avec les nouveaux paramétres saisie dans le form
81
         $data = $search_form->getData();
81
         $data = $search_form->getData();
82
         
82
         
83
+        if ($data['network'] == ElementSearcher::NETWORK_PERSONAL && $this->isVisitor())
84
+        {
85
+          return $this->mustBeConnectedAjaxResponse();
86
+        }
87
+        
83
         // Le formulaire nous permet de récupérer uniquement les ids.
88
         // Le formulaire nous permet de récupérer uniquement les ids.
84
         // On va donc chercher les name en base pour le passer a l'objet
89
         // On va donc chercher les name en base pour le passer a l'objet
85
         // ElementSearch
90
         // ElementSearch

+ 30 - 2
src/Muzich/CoreBundle/Resources/public/css/main.css View File

870
   list-style-type: none;
870
   list-style-type: none;
871
   display: inline;
871
   display: inline;
872
   float: left;
872
   float: left;
873
-  padding: 20px;
873
+  padding-left: 15px;
874
+  padding-top: 20px;
875
+  padding-right: 20px;
876
+  padding-bottom: 20px;
874
   
877
   
875
   background: #dddddd; /* Old browsers */
878
   background: #dddddd; /* Old browsers */
876
   /* IE9 SVG, needs conditional override of 'filter' to 'none' */
879
   /* IE9 SVG, needs conditional override of 'filter' to 'none' */
1119
 
1122
 
1120
 #tabs_tag_search_buttons a
1123
 #tabs_tag_search_buttons a
1121
 {
1124
 {
1122
-  padding-left: 5px;
1125
+  padding-left: 10px;
1123
 }
1126
 }
1124
 
1127
 
1125
 #tabs_tag_search_buttons img
1128
 #tabs_tag_search_buttons img
2431
   z-index: 100001;
2434
   z-index: 100001;
2432
 }
2435
 }
2433
 
2436
 
2437
+a.all_network
2438
+{
2439
+  padding-left: 15px;
2440
+  padding-right: 15px;
2441
+}
2442
+
2443
+div#tags_prompt_search p.help_notags
2444
+{
2445
+  font-weight: bold;
2446
+  margin-top: -10px;
2447
+}
2448
+
2449
+div#tags_prompt_search p.help_notags img
2450
+{
2451
+  float: right;
2452
+  margin: -16px 15px -10px 0;
2453
+}
2454
+
2455
+div#tags_prompt_search p.help_notags span
2456
+{
2457
+  float: left;
2458
+  margin-bottom: 10px;
2459
+  width: 480px;
2460
+}
2461
+
2434
 /*
2462
 /*
2435
 *
2463
 *
2436
 *
2464
 *

+ 16 - 0
src/Muzich/CoreBundle/Resources/public/js/TagPrompt.js View File

341
   var _tag_box_manager = new TagBoxManager(tag_box, this);
341
   var _tag_box_manager = new TagBoxManager(tag_box, this);
342
   var _prompt_loader = prompt_loader;
342
   var _prompt_loader = prompt_loader;
343
   
343
   
344
+  var updateHelpDisplay = function()
345
+  {
346
+    if (_tag_prompt.getSelectedTags())
347
+    {
348
+      if (_tag_prompt.getSelectedTags().length)
349
+      {
350
+        $('#tags_prompt_search p.help_notags').hide();
351
+      }
352
+      else
353
+      {
354
+        $('#tags_prompt_search p.help_notags').show();
355
+      }
356
+    }
357
+  }
358
+  
344
   this.updateOutput = function(tags)
359
   this.updateOutput = function(tags)
345
   {
360
   {
346
     _output.val(array2json(tagsToArrayIds(tags)));
361
     _output.val(array2json(tagsToArrayIds(tags)));
347
     _tag_proposition_list.hide();
362
     _tag_proposition_list.hide();
348
     _tag_box_manager.update(tags);
363
     _tag_box_manager.update(tags);
349
     cleanInput();
364
     cleanInput();
365
+    updateHelpDisplay();
350
   }
366
   }
351
   
367
   
352
   var _tag_prompt = new TagPrompt(this.updateOutput, this);
368
   var _tag_prompt = new TagPrompt(this.updateOutput, this);

+ 19 - 23
src/Muzich/CoreBundle/Resources/public/js/muzich.js View File

335
       $(this).parent('li').addClass('selected');
335
       $(this).parent('li').addClass('selected');
336
     }
336
     }
337
     
337
     
338
-    if ($('div.top_tools:visible').length)
339
-    {
340
-      $('div.top_tools').slideUp();
341
-    }
338
+//    if ($('div.top_tools:visible').length)
339
+//    {
340
+//      $('div.top_tools').slideUp();
341
+//    }
342
     
342
     
343
     // On initialise la liste de tags déjà ajouté
343
     // On initialise la liste de tags déjà ajouté
344
     window.search_tag_prompt_connector.initializeTags([]);
344
     window.search_tag_prompt_connector.initializeTags([]);
357
     $(this).parents('ul#tabs_tag_search_buttons').find('li').removeClass('selected');
357
     $(this).parents('ul#tabs_tag_search_buttons').find('li').removeClass('selected');
358
     $(this).parent('li').addClass('selected');
358
     $(this).parent('li').addClass('selected');
359
     
359
     
360
-    if ($('div.top_tools:visible').length == 0)
361
-    {
362
-      $('div.top_tools').slideDown();
363
-    }
360
+//    if ($('div.top_tools:visible').length == 0)
361
+//    {
362
+//      $('div.top_tools').slideDown();
363
+//    }
364
     
364
     
365
     var form = $('form[name="search"]');
365
     var form = $('form[name="search"]');
366
     
366
     
401
       {
401
       {
402
         $('ul#tabs_tag_search_buttons').find('li').removeClass('selected');
402
         $('ul#tabs_tag_search_buttons').find('li').removeClass('selected');
403
         $('li#tab_li_tag_search_with_tags').addClass('selected');
403
         $('li#tab_li_tag_search_with_tags').addClass('selected');
404
+        
405
+        // Ne devrais plus servir puisque on l'affiche toujours maintenant
404
         if (!$('div.top_tools:visible').length)
406
         if (!$('div.top_tools:visible').length)
405
         {
407
         {
406
           $('div.top_tools').slideDown();
408
           $('div.top_tools').slideDown();
407
         }
409
         }
408
       }
410
       }
409
       
411
       
410
-      
411
       $('img.elements_more_loader').show();
412
       $('img.elements_more_loader').show();
412
       $('ul.elements').html('');
413
       $('ul.elements').html('');
413
       
414
       
678
     window.ResponseController.execute(
679
     window.ResponseController.execute(
679
         response,
680
         response,
680
         function(){},
681
         function(){},
681
-        function(){}
682
+        function(){
683
+          $('img.elements_more_loader').hide();
684
+        }
682
       );
685
       );
683
     
686
     
684
     $('ul.elements').html(response.html);
687
     $('ul.elements').html(response.html);
1283
       
1286
       
1284
       if ($('form[name="search"]').length)
1287
       if ($('form[name="search"]').length)
1285
       {
1288
       {
1286
-        if ($('a#tabs_tag_search_with_tags').parent('li').hasClass('selected'))
1287
-        {
1288
-          $('div.top_tools').slideDown();
1289
-        }
1289
+        $('div.top_tools').slideDown();
1290
       }
1290
       }
1291
       remove_tags('add');
1291
       remove_tags('add');
1292
       recolorize_element_list();
1292
       recolorize_element_list();
2753
      $('#element_add_box').slideDown("slow");
2753
      $('#element_add_box').slideDown("slow");
2754
      $('#element_add_link').hide();
2754
      $('#element_add_link').hide();
2755
      $('#element_add_close_link').show();
2755
      $('#element_add_close_link').show();
2756
-     if ($('a#tabs_tag_search_with_tags').parent('li').hasClass('selected'))
2757
-     {
2758
-       $('div.top_tools').slideUp();
2759
-     }
2756
+     $('div.top_tools').slideUp();
2757
+     
2760
      // Au cas ou firefox garde la valeur step 2:
2758
      // Au cas ou firefox garde la valeur step 2:
2761
         $('input#form_add_step').val('1');
2759
         $('input#form_add_step').val('1');
2762
     $('form[name="add"]').attr('action', url_datas_api);
2760
     $('form[name="add"]').attr('action', url_datas_api);
2768
      $('#element_add_box').slideUp("slow");
2766
      $('#element_add_box').slideUp("slow");
2769
      $('#element_add_link').show();
2767
      $('#element_add_link').show();
2770
      $('#element_add_close_link').hide();
2768
      $('#element_add_close_link').hide();
2771
-     
2772
-     if ($('a#tabs_tag_search_with_tags').parent('li').hasClass('selected'))
2773
-     {
2774
-       $('div.top_tools').slideDown();
2775
-     }
2769
+     $('div.top_tools').slideDown();
2776
      
2770
      
2777
      //form_add_reinit();
2771
      //form_add_reinit();
2778
      // copie du contenu de la fonction ci dessus, arrive pas a l'appeler ... huh
2772
      // copie du contenu de la fonction ci dessus, arrive pas a l'appeler ... huh
3052
    
3046
    
3053
    $('a.tags_prompt_remove_all').click(function(){
3047
    $('a.tags_prompt_remove_all').click(function(){
3054
      window.search_tag_prompt_connector.initializeTags([]);
3048
      window.search_tag_prompt_connector.initializeTags([]);
3049
+     $('form[name="search"] input[type="submit"]').trigger('click');
3055
    });
3050
    });
3056
    
3051
    
3057
    $('a.tags_prompt_favorites').click(function(){
3052
    $('a.tags_prompt_favorites').click(function(){
3107
         });
3102
         });
3108
       }
3103
       }
3109
       
3104
       
3105
+      $('form[name="search"] input[type="submit"]').trigger('click');
3110
     });
3106
     });
3111
     
3107
     
3112
     return false;
3108
     return false;

+ 5 - 12
src/Muzich/CoreBundle/Resources/views/HelpTour/home.html.twig View File

33
               position : 'R'
33
               position : 'R'
34
             },
34
             },
35
             { 
35
             { 
36
-              element: '#tabs_tag_search_no_tags',
36
+              element: 'div#tags_prompt_search',
37
               text : {{ 'help_tour.home.filters.tour'|trans({}, 'text') }},
37
               text : {{ 'help_tour.home.filters.tour'|trans({}, 'text') }},
38
-              tooltip: {{ 'help_tour.home.filters.notags'|trans({}, 'text') }},
39
-              position : 'B'
40
-            },
41
-            { 
42
-              element: '#tabs_tag_search_with_tags',
43
-              text : {{ 'help_tour.home.filters.tour'|trans({}, 'text') }},
44
-              tooltip: {{ 'help_tour.home.filters.withtags'|trans({}, 'text') }},
45
-              position : 'T',
46
-              tooltipCallback : function(){ $('#tabs_tag_search_with_tags').trigger('click'); }
38
+              tooltip: {{ 'help_tour.home.filters.tags'|trans({}, 'text') }},
39
+              position : 'T'
47
             },
40
             },
48
             { 
41
             { 
49
-              element: '#header_menu li a.all_network',
42
+              element: 'a#link_all_network',
50
               text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
43
               text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
51
               tooltip: {{ 'help_tour.home.network.public'|trans({}, 'text') }},
44
               tooltip: {{ 'help_tour.home.network.public'|trans({}, 'text') }},
52
               position : 'B'
45
               position : 'B'
53
             },
46
             },
54
             { 
47
             { 
55
-              element: '#header_menu li a#link_my_network',
48
+              element: 'a#link_my_network',
56
               text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
49
               text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
57
               tooltip: {{ 'help_tour.home.network.private'|trans({}, 'text') }},
50
               tooltip: {{ 'help_tour.home.network.private'|trans({}, 'text') }},
58
               position : 'B'
51
               position : 'B'

+ 4 - 3
src/Muzich/CoreBundle/Resources/views/Menu/main_menu.html.twig View File

7
   {% if app.user %}
7
   {% if app.user %}
8
     <li class="{% if network_public == '1' and not ids_display %}selected{% endif %}">
8
     <li class="{% if network_public == '1' and not ids_display %}selected{% endif %}">
9
       <a id="link_all_network" href="{{ path('home') }}" class="all_network">
9
       <a id="link_all_network" href="{{ path('home') }}" class="all_network">
10
-        {{ 'filter.network_all'|trans({}, 'userui') }}
10
+        {{ 'filter.network_generic'|trans({}, 'userui') }}
11
       </a>
11
       </a>
12
     </li>
12
     </li>
13
   {% else %}
13
   {% else %}
14
     <li class="{% if network_public == '1' and not ids_display %}selected{% endif %}">
14
     <li class="{% if network_public == '1' and not ids_display %}selected{% endif %}">
15
       <a href="{{ path('home') }}" class="all_network">
15
       <a href="{{ path('home') }}" class="all_network">
16
-        {{ 'filter.network_all'|trans({}, 'userui') }}
16
+        {{ 'filter.network_generic'|trans({}, 'userui') }}
17
       </a>
17
       </a>
18
     </li>
18
     </li>
19
   {% endif %}
19
   {% endif %}
20
+  {#
20
   <li class="separator"></li>
21
   <li class="separator"></li>
21
   {% if app.user %}
22
   {% if app.user %}
22
     <li class="{% if network_public == '0' and not ids_display %}selected{% endif %}">
23
     <li class="{% if network_public == '0' and not ids_display %}selected{% endif %}">
30
         {{ 'filter.network_my'|trans({}, 'userui') }}
31
         {{ 'filter.network_my'|trans({}, 'userui') }}
31
       </a>
32
       </a>
32
     </li>
33
     </li>
33
-  {% endif %}
34
+  {% endif %}#}
34
   <li class="separator"></li>
35
   <li class="separator"></li>
35
   {% if app.user %}
36
   {% if app.user %}
36
     <li class="{% if app.request.get('topmenu') == 'playlists' and app.request.get('user_slug') == app.user.slug %}selected{% endif %}">
37
     <li class="{% if app.request.get('topmenu') == 'playlists' and app.request.get('user_slug') == app.user.slug %}selected{% endif %}">

+ 6 - 2
src/Muzich/CoreBundle/Resources/views/SearchElement/form.html.twig View File

1
+{% if display_help_notags is not defined %}
2
+  {% set display_help_notags = false %}
3
+{% endif %}
1
 
4
 
2
   {{ form_errors(search_form) }}
5
   {{ form_errors(search_form) }}
3
 
6
 
35
   </div>
38
   </div>
36
   
39
   
37
   {% include "MuzichCoreBundle:Tag:tagsPrompt.html.twig" with { 
40
   {% include "MuzichCoreBundle:Tag:tagsPrompt.html.twig" with { 
38
-    'form_name'     : form_name,
39
-    'display_tools' : true
41
+    'form_name'           : form_name,
42
+    'display_tools'       : true,
43
+    'display_help_notags' : display_help_notags
40
   } %}
44
   } %}
41
   
45
   
42
   <div>
46
   <div>

+ 10 - 1
src/Muzich/CoreBundle/Resources/views/Tag/tagsPrompt.html.twig View File

1
 {% if display_tools is not defined %}
1
 {% if display_tools is not defined %}
2
   {% set display_tools = false %}
2
   {% set display_tools = false %}
3
 {% endif %}
3
 {% endif %}
4
-
4
+{% if display_help_notags is not defined %}
5
+  {% set display_help_notags = false %}
6
+{% endif %}
5
 
7
 
6
 <a title="{{ 'tags.prompt.help_box_title'|trans({}, 'userui') }}" href="{{ path('helpbox_bootstrap', {'ressource_id':'tags_prompt'}) }}" class="helpbox tag_prompt_tool tags_prompt_helpbox">
8
 <a title="{{ 'tags.prompt.help_box_title'|trans({}, 'userui') }}" href="{{ path('helpbox_bootstrap', {'ressource_id':'tags_prompt'}) }}" class="helpbox tag_prompt_tool tags_prompt_helpbox">
7
   <img alt="help ?" src="{{ asset('img/1362157855_help.png') }}" />
9
   <img alt="help ?" src="{{ asset('img/1362157855_help.png') }}" />
22
 <div class="tags_prompt" id="tags_prompt_{{ form_name }}">
24
 <div class="tags_prompt" id="tags_prompt_{{ form_name }}">
23
    
25
    
24
   <ul class="tagbox"></ul>
26
   <ul class="tagbox"></ul>
27
+  
28
+  {% if display_help_notags %}
29
+    <p class="help_notags" {% if search_tags is defined %}{% if search_tags|length %}style="display: none;"{% endif %}{% endif %}>
30
+      <img src="{{ asset('/img/1372956700_gnome-dev-symlink.png') }}" alt="here" />
31
+      <span>{{ 'filter.help_text'|trans({}, 'userui') }}</span>
32
+    </p>
33
+  {% endif %}
25
   <div style="clear: both;"></div>
34
   <div style="clear: both;"></div>
26
   
35
   
27
   <input
36
   <input

+ 3 - 1
src/Muzich/CoreBundle/Resources/views/layout.html.twig View File

8
   </head>
8
   </head>
9
   <body>
9
   <body>
10
     
10
     
11
-    {% include 'MuzichCoreBundle:Component:facebook.html.twig' %}
11
+    {% if  app.environment == 'prod' %}
12
+      {% include 'MuzichCoreBundle:Component:facebook.html.twig' %}
13
+    {% endif %}
12
     {% include 'MuzichCoreBundle:Layout:noscript.html.twig' %}
14
     {% include 'MuzichCoreBundle:Layout:noscript.html.twig' %}
13
     {% include 'MuzichCoreBundle:Autoplay:autoplay.html.twig' %}
15
     {% include 'MuzichCoreBundle:Autoplay:autoplay.html.twig' %}
14
   
16
   

+ 8 - 3
src/Muzich/CoreBundle/lib/Controller.php View File

495
       
495
       
496
       if ($this->getRequest()->isXmlHttpRequest())
496
       if ($this->getRequest()->isXmlHttpRequest())
497
       {
497
       {
498
-        return $this->jsonResponse(array(
499
-          'status' => 'mustbeconnected'
500
-        ));
498
+        return $this->mustBeConnectedResponse();
501
       }
499
       }
502
       else
500
       else
503
       {
501
       {
506
     }
504
     }
507
   }
505
   }
508
   
506
   
507
+  protected function mustBeConnectedAjaxResponse()
508
+  {
509
+    return $this->jsonResponse(array(
510
+      'status' => 'mustbeconnected'
511
+    ));
512
+  }
513
+  
509
   /**
514
   /**
510
    *
515
    *
511
    * @return \Doctrine\ORM\EntityManager 
516
    * @return \Doctrine\ORM\EntityManager 

+ 7 - 2
src/Muzich/HomeBundle/Controller/HomeController.php View File

15
    * 
15
    * 
16
    * @Template()
16
    * @Template()
17
    */
17
    */
18
-  public function indexAction($count = null, $network = 'public', $login = false)
18
+  public function indexAction($count = null, $network = null, $login = false)
19
   {
19
   {
20
     $search_object = $this->getElementSearcher($count);
20
     $search_object = $this->getElementSearcher($count);
21
     $user = $this->getUser(true, array('join' => array(
21
     $user = $this->getUser(true, array('join' => array(
22
       'groups_owned'
22
       'groups_owned'
23
     )), true);
23
     )), true);
24
-    $search_object->setNetwork($network);
24
+    
25
+    if (!$network && !$search_object->getNetwork())
26
+    {
27
+      $search_object->setNetwork(ElementSearcher::NETWORK_PUBLIC);
28
+    }
29
+    
25
     $search_form = $this->getSearchForm($search_object);
30
     $search_form = $this->getSearchForm($search_object);
26
     $add_form = $this->getAddForm();
31
     $add_form = $this->getAddForm();
27
     
32
     

+ 8 - 8
src/Muzich/HomeBundle/Resources/views/Component/filter_menu.html.twig View File

1
 <ul id="tabs_tag_search_buttons">
1
 <ul id="tabs_tag_search_buttons">
2
-  <li id="tab_li_tag_search_no_tags" class="{% if search_tags_id|length == 0 %}selected{% endif %} gradient">
3
-    <a id="tabs_tag_search_no_tags" href="#" >
4
-      <img src="{{ asset('/img/icon_close.png') }}" alt="nofilters" />
5
-      {{ 'filter.clear'|trans({}, 'userui') }}
2
+  <li id="tab_li_tag_search_no_tags" class="{% if network_public == '1' %}selected{% endif %} gradient">
3
+    <a id="link_all_network" href="#"  class="all_network">
4
+      <img src="{{ asset('/img/1372949806_web-hosting-px-png.png') }}" alt="network" />
5
+      {{ 'filter.network_all'|trans({}, 'userui') }}
6
     </a>
6
     </a>
7
     <div class="dart"></div>
7
     <div class="dart"></div>
8
   </li>
8
   </li>
9
-  <li id="tab_li_tag_search_with_tags" class="{% if search_tags_id|length %}selected{% endif %} gradient">
10
-    <a id="tabs_tag_search_with_tags" href="#" >
11
-      <img src="{{ asset('/img/icon_minilogo_2.png') }}" alt="nofilters" />
12
-      {{ 'filter.mytags'|trans({}, 'userui') }}
9
+  <li id="tab_li_tag_search_with_tags" class="{% if network_public == '0' and not ids_display %}selected{% endif %} gradient">
10
+    <a id="link_my_network" href="#" class="my_network" >
11
+      <img src="{{ asset('/img/icon_friends_little.png') }}" alt="my network" />
12
+      {{ 'filter.network_my'|trans({}, 'userui') }}
13
     </a>
13
     </a>
14
     <div class="dart"></div>
14
     <div class="dart"></div>
15
   </li>
15
   </li>

+ 3 - 2
src/Muzich/HomeBundle/Resources/views/Home/index.html.twig View File

52
     </script>
52
     </script>
53
   {% endif %}
53
   {% endif %}
54
 
54
 
55
-  <div class="top_tools" {% if search_tags_id|length == 0 %}style="display: none;"{% endif %}>
55
+  <div class="top_tools">
56
   
56
   
57
     <div class="search_tools">
57
     <div class="search_tools">
58
       <form name="{{ search_form_name }}" action="{{ path('search_elements', {'context':'home'}) }}" method="post" {{ form_enctype(search_form) }}>
58
       <form name="{{ search_form_name }}" action="{{ path('search_elements', {'context':'home'}) }}" method="post" {{ form_enctype(search_form) }}>
59
         
59
         
60
         {% include "MuzichCoreBundle:SearchElement:form.html.twig" with { 
60
         {% include "MuzichCoreBundle:SearchElement:form.html.twig" with { 
61
           'form_name'               : search_form_name,
61
           'form_name'               : search_form_name,
62
-          'search_tags'             : search_tags_id
62
+          'search_tags'             : search_tags_id,
63
+          'display_help_notags'     : true
63
         } %}
64
         } %}
64
         
65
         
65
         <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
66
         <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>

BIN
web/img/1372949806_web-hosting-px-png.png View File


BIN
web/img/1372956700_gnome-dev-symlink.png View File


BIN
web/img/icon_friends_little.png View File