Procházet zdrojové kódy

affichage du boutton launch demo que sur home

Bastien Sevajol před 11 roky
rodič
revize
27778206f5

+ 9 - 3
src/Muzich/CoreBundle/Resources/views/Layout/side.html.twig Zobrazit soubor

@@ -1,3 +1,7 @@
1
+{% if display_launch_demo is not defined %}
2
+  {% set display_launch_demo = false %}
3
+{% endif %}
4
+
1 5
 {% if app.user %}
2 6
   
3 7
   <div id="user_statusbox" class="nicebox">
@@ -22,9 +26,11 @@
22 26
     <a id="know_more" class="helpbox button" href="{{ path('helpbox_bootstrap', {'ressource_id':'know_more'}) }}" title="{{ 'help.know_more'|trans({}, 'navigationui') }}">
23 27
       {{ 'help.know_more'|trans({}, 'navigationui') }}
24 28
     </a>
25
-    <a id="launch_tour" class="button" href="#" title="{{ 'help.maunch_tour'|trans({}, 'navigationui') }}">
26
-      {{ 'help.launch_tour'|trans({}, 'navigationui') }}
27
-    </a>
29
+    {% if display_launch_demo %}
30
+      <a id="launch_tour" class="button" href="#" title="{{ 'help.maunch_tour'|trans({}, 'navigationui') }}">
31
+        {{ 'help.launch_tour'|trans({}, 'navigationui') }}
32
+      </a>
33
+    {% endif %}
28 34
   </div>
29 35
   
30 36
 {% endif %}

+ 2 - 1
src/Muzich/HomeBundle/Controller/HomeController.php Zobrazit soubor

@@ -38,7 +38,8 @@ class HomeController extends Controller
38 38
       'search_form_name' => 'search',
39 39
       'network_public'   => $search_object->isNetworkPublic(),
40 40
       'elements'         => $elements,
41
-      'from_url'         => $this->getRequest()->get('from_url')
41
+      'from_url'         => $this->getRequest()->get('from_url'),
42
+      'display_launch_demo' => true
42 43
     );
43 44
   }
44 45