Browse Source

affichage du boutton launch demo que sur home

Bastien Sevajol 11 years ago
parent
commit
27778206f5

+ 9 - 3
src/Muzich/CoreBundle/Resources/views/Layout/side.html.twig View File

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

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

38
       'search_form_name' => 'search',
38
       'search_form_name' => 'search',
39
       'network_public'   => $search_object->isNetworkPublic(),
39
       'network_public'   => $search_object->isNetworkPublic(),
40
       'elements'         => $elements,
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