Browse Source

display more for visitors

Bastien Sevajol 11 years ago
parent
commit
71e23b57ec

+ 5 - 1
app/Resources/translations/navigationui.en.yml View File

61
     text:               You do not have access to this page.
61
     text:               You do not have access to this page.
62
   error:
62
   error:
63
     title:              Error.
63
     title:              Error.
64
-    text:               Oops, an error occured. Our ants are working on it, they will correct it soon.
64
+    text:               Oops, an error occured. Our ants are working on it, they will correct it soon.
65
+
66
+help:
67
+    know_more:          "Muzi.ch: What is it ?"
68
+    launch_tour:        Launch demo

+ 2 - 1
app/Resources/translations/navigationui.fr.yml View File

65
     text:               Une erreur est survenue. Notre équipe technique en a été avertie et tentera de procéder à sa correction.
65
     text:               Une erreur est survenue. Notre équipe technique en a été avertie et tentera de procéder à sa correction.
66
 
66
 
67
 help:
67
 help:
68
-    know_more:          Muzi.ch: Qu'est-ce que c'est ?
68
+    know_more:          "Muzi.ch: Qu'est-ce que c'est ?"
69
+    launch_tour:        Lancer une démonstration

+ 24 - 23
app/Resources/translations/text.fr.yml View File

2
 sites:
2
 sites:
3
   subtitle:      Support des sites externes
3
   subtitle:      Support des sites externes
4
   text:          |
4
   text:          |
5
-                  Lorsque vous ajouter un lien sur le réseau Muzi.ch celui-ci est
5
+                  Lorsque vous ajoutez un lien sur le réseau Muzi.ch celui-ci est
6
                   interprété afin d'intégrer directement le contenu que vous souhaitez 
6
                   interprété afin d'intégrer directement le contenu que vous souhaitez 
7
                   partager. Ci-dessous la liste des sites dont certaines ressources sont
7
                   partager. Ci-dessous la liste des sites dont certaines ressources sont
8
-                  actuellement supportés.
8
+                  actuellement supportées.
9
 dev:
9
 dev:
10
   subtitle:       Muzich est en cours de construction
10
   subtitle:       Muzich est en cours de construction
11
   text:           |
11
   text:           |
12
                   Actuellement vous utilisez une version de test. De nombreuses 
12
                   Actuellement vous utilisez une version de test. De nombreuses 
13
-                  fonctionnalités doivent voir le jours au fur et a mesure du développement.
13
+                  fonctionnalités doivent voir le jour au fur et a mesure du développement.
14
 about:
14
 about:
15
   subtitle:       Découvrez et partagez la musique d'internet
15
   subtitle:       Découvrez et partagez la musique d'internet
16
   text:           |
16
   text:           |
17
-                  Grâce au réseau de Muzi.ch découvrez chaque jours de nouveaux son partagés
18
-                  par les autres membres de ce réseau. Partagez egallement vos coup de coeurs 
17
+                  Grâce au réseau de Muzi.ch découvrez chaque jour de nouvelles musiques partagés
18
+                  par les autres membres de ce réseau. Partagez également vos coups de cœurs 
19
                   sur ce même réseau.
19
                   sur ce même réseau.
20
 
20
 
21
 mail:
21
 mail:
38
     content:      >
38
     content:      >
39
                   Bonjour %username%,
39
                   Bonjour %username%,
40
 
40
 
41
-                  Une demande de réinitialisation de votre mot de passe a été demandé. Si vous
41
+                  Une demande de réinitialisation de votre mot de passe a été faite. Si vous
42
                   n'êtes pas a l'origine de cette demande, ne tenez pas compte de cet email.
42
                   n'êtes pas a l'origine de cette demande, ne tenez pas compte de cet email.
43
                   
43
                   
44
                   Si au contraire vous souhaitez changer le mot de passe de votre accès a Muzi.ch
44
                   Si au contraire vous souhaitez changer le mot de passe de votre accès a Muzi.ch
53
     content:      >
53
     content:      >
54
                   Bonjour %username%,
54
                   Bonjour %username%,
55
 
55
 
56
-                  Une demande de changement d'email a été demandé. Si vous
56
+                  Une demande de changement d'email a été faite. Si vous
57
                   n'êtes pas a l'origine de cette demande, ne tenez pas compte de cet email.
57
                   n'êtes pas a l'origine de cette demande, ne tenez pas compte de cet email.
58
                   
58
                   
59
                   Si au contraire vous souhaitez définir cette nouvelle adresse email
59
                   Si au contraire vous souhaitez définir cette nouvelle adresse email
65
   presubscription:
65
   presubscription:
66
     subject:        Muzi.ch: Confirmation de demande d'incription 
66
     subject:        Muzi.ch: Confirmation de demande d'incription 
67
     text:           >
67
     text:           >
68
-                    Ceci est un émail automatique, merci d'utiliser contact@muzi.ch pour nous répondre.
68
+                    Ceci est un email automatique, merci d'utiliser contact@muzi.ch pour nous répondre.
69
                     
69
                     
70
                     
70
                     
71
-                    Une demande d'inscription à Muzi.ch a été demandée.
71
+                    Une demande d'inscription à Muzi.ch a été faite.
72
                     
72
                     
73
                     Si vous n'êtes pas à l'origine de cette demande, ne tenez pas compte de cet email.
73
                     Si vous n'êtes pas à l'origine de cette demande, ne tenez pas compte de cet email.
74
                     
74
                     
112
     title:            Liste de tags
112
     title:            Liste de tags
113
     text:             |
113
     text:             |
114
                       Les liste de tags vont vous permettre à différents endroits du site
114
                       Les liste de tags vont vous permettre à différents endroits du site
115
-                      de pouvoir filtrer le flux ou de spécifié le style de votre partage.
115
+                      de pouvoir filtrer le flux ou de spécifier le style de votre partage.
116
                       pour cela vous allez devoir saisir les tags un à un comme ceci:
116
                       pour cela vous allez devoir saisir les tags un à un comme ceci:
117
     subtitle1:        Commencez par saisir votre premier tag
117
     subtitle1:        Commencez par saisir votre premier tag
118
     subtitle2:        Choisissez le tag souhaité dans la liste en cliquant dessus
118
     subtitle2:        Choisissez le tag souhaité dans la liste en cliquant dessus
125
                       Muzi.ch est une plate-forme sur laquelle vous pourrez découvrir et partager
125
                       Muzi.ch est une plate-forme sur laquelle vous pourrez découvrir et partager
126
                       la musique disponible sur les sites comme SoundCloud, Deezer, Jamendo ou encore
126
                       la musique disponible sur les sites comme SoundCloud, Deezer, Jamendo ou encore
127
                       Youtube. A l'aide de tags représentant les styles de musiques, vous pouvez
127
                       Youtube. A l'aide de tags représentant les styles de musiques, vous pouvez
128
-                      partager et découvrir avec précision les nouveaux sont qui vous correspondent.
128
+                      partager et découvrir avec précision les nouveaux sons qui vous correspondent.
129
     flux:
129
     flux:
130
       title:          Flux de partages
130
       title:          Flux de partages
131
       text:           |
131
       text:           |
132
-                      Un flux que vous pouvez filtrer a l'aide de tags représente les partages de
132
+                      Un flux, que vous pouvez filtrer a l'aide de tags, représente les partages de
133
                       la communauté.
133
                       la communauté.
134
     autoplay:
134
     autoplay:
135
       title:          La lecture automatique
135
       title:          La lecture automatique
136
       text:           |
136
       text:           |
137
-                      Jouez en liste de lecture les partages ou de vos favoris issues 
137
+                      Jouez en liste de lecture les partages ou vos favoris issus 
138
                       de Youtube, de SoundCloud etc ...
138
                       de Youtube, de SoundCloud etc ...
139
     reputation:
139
     reputation:
140
       title:          Faites-vous une réputation
140
       title:          Faites-vous une réputation
141
       text:           |
141
       text:           |
142
                       Plus vos partages plaisent, plus vous gagnez de réputation !
142
                       Plus vos partages plaisent, plus vous gagnez de réputation !
143
-                      Fiez-vous à la réputation des utilisateur pour chosir quels profils
144
-                      suivre et créer votre réseau personel
143
+                      Fiez-vous à la réputation des utilisateurs pour chosir quels profils
144
+                      suivre et créer votre réseau personnel.
145
               
145
               
146
         
146
         
147
 
147
 
151
     prev:             Précédent
151
     prev:             Précédent
152
     start:            Démarrer
152
     start:            Démarrer
153
     end:              Ne plus voir
153
     end:              Ne plus voir
154
+    close:            Fermer
154
   home:
155
   home:
155
     welcome:
156
     welcome:
156
       tour:           |
157
       tour:           |
173
       play:           |
174
       play:           |
174
                       "<p>En cliquant sur la miniature vous pouvez lancer la lecture de "+
175
                       "<p>En cliquant sur la miniature vous pouvez lancer la lecture de "+
175
                       "la musique si le partage "+
176
                       "la musique si le partage "+
176
-                      "est issue d'un site supporté, ou ouvrir la page partagé par "+
177
+                      "est issu d'un site supporté, ou ouvrir la page partagée par "+
177
                       "l'utilisateur.</p>"
178
                       "l'utilisateur.</p>"
178
       actions:        |
179
       actions:        |
179
-                      "<p>Vous pouvez, sur chaques partages: "+
180
+                      "<p>Vous pouvez, sur chaque partage: "+
180
                       "<strong>Ouvrir la page d'origine</strong>, "+
181
                       "<strong>Ouvrir la page d'origine</strong>, "+
181
                       "<strong>lancer la lecture automatique</strong> (si le lien est supporté), "+
182
                       "<strong>lancer la lecture automatique</strong> (si le lien est supporté), "+
182
                       "<strong>Proposer des tags</strong>, "+
183
                       "<strong>Proposer des tags</strong>, "+
185
                       "</p>"
186
                       "</p>"
186
       likefav:        |
187
       likefav:        |
187
                       "<p>Si cette musique vous a plu: récompensez l'utilisateur avec un pouce ! "+
188
                       "<p>Si cette musique vous a plu: récompensez l'utilisateur avec un pouce ! "+
188
-                      " Vous pouvez égallement ajouter ce partage a votre liste de musiques favorites.</p>"
189
+                      " Vous pouvez également ajouter ce partage à votre liste de musiques favorites.</p>"
189
     filters:
190
     filters:
190
       tour:           |
191
       tour:           |
191
                       "<h1>Filtres</h1>"+
192
                       "<h1>Filtres</h1>"+
192
-                      "<p>Vous pouvez filtrer les partages a l'aide de tags.</p>"
193
+                      "<p>Vous pouvez filtrer les partages à l'aide de tags.</p>"
193
       notags:         |
194
       notags:         |
194
                       "<p>Sans tags, comme maintenant.</p>"
195
                       "<p>Sans tags, comme maintenant.</p>"
195
       withtags:       |
196
       withtags:       |
208
     addelement:
209
     addelement:
209
       tour:           |
210
       tour:           |
210
                       "<h1>Ajouter un partage</h1>"+
211
                       "<h1>Ajouter un partage</h1>"+
211
-                      "<p>Le deuxième point principale de Muzi.ch est l'ajout de partages. "+
212
+                      "<p>Le deuxième point principal de Muzi.ch est l'ajout de partages. "+
212
                       "Plus votre partage sera apprécié, plus vous gagnerez en réputation "+
213
                       "Plus votre partage sera apprécié, plus vous gagnerez en réputation "+
213
                       "et plus vous partagerez avec des tags précis, plus vos partages seront écoutés.</p>"
214
                       "et plus vous partagerez avec des tags précis, plus vos partages seront écoutés.</p>"
214
       url:            |
215
       url:            |
215
                       "<p>La première étape sera de saisir l'adresse http:// de la page "+
216
                       "<p>La première étape sera de saisir l'adresse http:// de la page "+
216
                       "contenant la musique que vous souhaitez partager.</p>"
217
                       "contenant la musique que vous souhaitez partager.</p>"
217
       form:           |
218
       form:           |
218
-                      "<p>Si l'adresse que vous avez saisis représente une ressource sur un site géré "+
219
-                      "par Muzi.ch, des informations préalables vous seront proposés. Sinon "+
219
+                      "<p>Si l'adresse que vous avez saisie représente une ressource sur un site géré "+
220
+                      "par Muzi.ch, des informations préalables vous seront proposées. Sinon "+
220
                       "il faudra simplement les entrer vous même. <strong>Pensez à saisir "+
221
                       "il faudra simplement les entrer vous même. <strong>Pensez à saisir "+
221
                       "des tags pour être précis dans votre partage !</strong></p>"
222
                       "des tags pour être précis dans votre partage !</strong></p>"
222
     end:
223
     end:
224
                       "<h1>C'est parti !</h1>"+
225
                       "<h1>C'est parti !</h1>"+
225
                       "<p>Amusez vous bien !</p>"
226
                       "<p>Amusez vous bien !</p>"
226
       go:             |
227
       go:             |
227
-                      "<p>C'est parti !</p>"
228
+                      "<p>C'est parti !</p>"

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

911
     foreach ($tags as $tag_name)
911
     foreach ($tags as $tag_name)
912
     {
912
     {
913
       // On va determiner si on connais ces tags
913
       // On va determiner si on connais ces tags
914
-      $tag_like_tag = $tag_like->getSimilarTags($tag_name, $this->getUserId());
914
+      $tag_like_tag = $tag_like->getSimilarTags($tag_name, $this->getUserId(true));
915
       
915
       
916
       // Premièrement: Si on a trouvé des équivalents en base
916
       // Premièrement: Si on a trouvé des équivalents en base
917
       if (array_key_exists('tags', $tag_like_tag))
917
       if (array_key_exists('tags', $tag_like_tag))
947
   }
947
   }
948
   
948
   
949
   public function getDatasApiAction(Request $request)
949
   public function getDatasApiAction(Request $request)
950
-  {
951
-    if (($response = $this->mustBeConnected(true)))
952
-    {
953
-      return $response;
954
-    }
955
-    
950
+  { 
956
     $url =  null;
951
     $url =  null;
957
     if (count(($element_add_values = $request->get('element_add'))))
952
     if (count(($element_add_values = $request->get('element_add'))))
958
     {
953
     {
975
     $element->setUrl($url);
970
     $element->setUrl($url);
976
     
971
     
977
     $factory = new ElementManager($element, $this->getEntityManager(), $this->container);
972
     $factory = new ElementManager($element, $this->getEntityManager(), $this->container);
978
-    $factory->proceedFill($this->getUser());
973
+    $factory->proceedFill((!$this->isVisitor())?$this->getUser():null);
979
     
974
     
980
     // On gère les tags proposés
975
     // On gère les tags proposés
981
     $tags_propositions = array();
976
     $tags_propositions = array();

+ 1 - 1
src/Muzich/CoreBundle/Factory/Elements/Soundcloudcom.php View File

229
           $tag_like = new TagLike($this->entity_manager);
229
           $tag_like = new TagLike($this->entity_manager);
230
           foreach (explode(' ', $tags_string) as $word)
230
           foreach (explode(' ', $tags_string) as $word)
231
           {
231
           {
232
-            $similar_tags = $tag_like->getSimilarTags($word, $this->element->getOwner()->getId());
232
+            $similar_tags = $tag_like->getSimilarTags($word, ($this->element->getOwner())?$this->element->getOwner()->getId():null);
233
             if (count($similar_tags))
233
             if (count($similar_tags))
234
             {
234
             {
235
               if ($similar_tags['same_found'])
235
               if ($similar_tags['same_found'])

+ 4 - 4
src/Muzich/CoreBundle/Managers/ElementManager.php View File

71
    * @param array $params
71
    * @param array $params
72
    * @param User $owner
72
    * @param User $owner
73
    */
73
    */
74
-  public function proceedFill(User $owner, $do_tags = true)
74
+  public function proceedFill(User $owner = null, $do_tags = true)
75
   {
75
   {
76
-    $this->element->setOwner($owner);
76
+    if ($owner)
77
+      $this->element->setOwner($owner);
77
     if ($do_tags)
78
     if ($do_tags)
78
-    {
79
       $this->element->setTagsWithIds($this->em, json_decode($this->element->getTags()));
79
       $this->element->setTagsWithIds($this->em, json_decode($this->element->getTags()));
80
-    }
80
+    
81
     $this->determineType();
81
     $this->determineType();
82
     $this->proceedExtraFields();
82
     $this->proceedExtraFields();
83
   }
83
   }

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

948
   margin-right: 0px;
948
   margin-right: 0px;
949
 }
949
 }
950
 
950
 
951
-#element_add_link, #element_add_close_link, #group_add_link, #group_add_link_disabled, #group_add_close_link, #registration_link, #login_link, #know_more
951
+#element_add_link, #element_add_close_link, #group_add_link, #group_add_link_disabled, #group_add_close_link, #registration_link, #login_link, #know_more, #launch_tour
952
 {
952
 {
953
   float: right;
953
   float: right;
954
   margin-top: -58px;
954
   margin-top: -58px;
2036
   height: 100px;
2036
   height: 100px;
2037
 }
2037
 }
2038
   
2038
   
2039
-#know_more
2039
+#know_more, #launch_tour
2040
 {
2040
 {
2041
   float: none;
2041
   float: none;
2042
   margin-bottom: 16px;
2042
   margin-bottom: 16px;
2043
   margin-top: 0;
2043
   margin-top: 0;
2044
+  width: 269px;
2044
 }
2045
 }
2045
 
2046
 
2046
 div.helpbox_image_container
2047
 div.helpbox_image_container

+ 156 - 116
src/Muzich/CoreBundle/Resources/public/js/muzich.js View File

38
         open_connection_or_subscription_window();
38
         open_connection_or_subscription_window();
39
       }
39
       }
40
     }
40
     }
41
+    else if (response.status === 'mustbeconnected')
42
+    {
43
+      open_connection_or_subscription_window(true);
44
+    }
41
   }
45
   }
42
   
46
   
43
   this.execute = function(response, success_callback, failure_callback)
47
   this.execute = function(response, success_callback, failure_callback)
281
     data: data,
285
     data: data,
282
     success: function(response)
286
     success: function(response)
283
     {
287
     {
284
-      if (response.status == 'mustbeconnected')
285
-      {
286
-        $(location).attr('href', url_home);
287
-      }
288
+      window.ResponseController.execute(
289
+        response,
290
+        function(){},
291
+        function(){}
292
+      );
288
       
293
       
289
       callback_success(response);
294
       callback_success(response);
290
     }
295
     }
360
     var form = $('form[name="search"]');
365
     var form = $('form[name="search"]');
361
     
366
     
362
     $.getJSON(url_get_favorites_tags, function(response) {
367
     $.getJSON(url_get_favorites_tags, function(response) {
363
-      if (response.status == 'mustbeconnected')
364
-      {
365
-        $(location).attr('href', url_home);
366
-      }
368
+      window.ResponseController.execute(
369
+        response,
370
+        function(){},
371
+        function(){}
372
+      );
367
       
373
       
368
         var tags = [];
374
         var tags = [];
369
         for (i in response.tags)
375
         for (i in response.tags)
540
     link.addClass('loading');
546
     link.addClass('loading');
541
     
547
     
542
     $.getJSON($(this).attr('href'), function(response) {
548
     $.getJSON($(this).attr('href'), function(response) {
543
-      if (response.status == 'mustbeconnected')
544
-      {
545
-        $(location).attr('href', url_home);
546
-      }
549
+      window.ResponseController.execute(
550
+        response,
551
+        function(){},
552
+        function(){}
553
+      );
547
       
554
       
548
       var img = link.find('img');
555
       var img = link.find('img');
549
       link.attr('href', response.link_new_url);
556
       link.attr('href', response.link_new_url);
615
        url: url,
622
        url: url,
616
        data: data,
623
        data: data,
617
        success: function(response) {
624
        success: function(response) {
618
-          if (response.status == 'mustbeconnected')
619
-           {
620
-             $(location).attr('href', url_home);
621
-           }
625
+          window.ResponseController.execute(
626
+            response,
627
+            function(){},
628
+            function(){}
629
+          );
622
 
630
 
623
           if (response.count)
631
           if (response.count)
624
           {
632
           {
661
   
669
   
662
   $('form[name="search"]').ajaxForm(function(response) { 
670
   $('form[name="search"]').ajaxForm(function(response) { 
663
     
671
     
664
-    if (response.status == 'mustbeconnected')
665
-    {
666
-      $(location).attr('href', url_home);
667
-    }
672
+    window.ResponseController.execute(
673
+        response,
674
+        function(){},
675
+        function(){}
676
+      );
668
     
677
     
669
     $('ul.elements').html(response.html);
678
     $('ul.elements').html(response.html);
670
     
679
     
698
       var li = link.parents('li.element');
707
       var li = link.parents('li.element');
699
       li.find('img.element_loader').show();
708
       li.find('img.element_loader').show();
700
       $.getJSON(link.attr('href'), function(response){
709
       $.getJSON(link.attr('href'), function(response){
701
-        if (response.status == 'mustbeconnected')
702
-        {
703
-          $(location).attr('href', url_home);
704
-        }
710
+        window.ResponseController.execute(
711
+        response,
712
+        function(){},
713
+        function(){}
714
+      );
705
         
715
         
706
         if (response.status == 'success')
716
         if (response.status == 'success')
707
         {
717
         {
741
       var li = link.parents('li.element');
751
       var li = link.parents('li.element');
742
       li.find('img.element_loader').show();
752
       li.find('img.element_loader').show();
743
       $.getJSON(link.attr('href'), function(response){
753
       $.getJSON(link.attr('href'), function(response){
744
-        if (response.status == 'mustbeconnected')
745
-        {
746
-          $(location).attr('href', url_home);
747
-        }
754
+        window.ResponseController.execute(
755
+        response,
756
+        function(){},
757
+        function(){}
758
+      );
748
         
759
         
749
         if (response.status == 'success')
760
         if (response.status == 'success')
750
         {
761
         {
775
     
786
     
776
     $.getJSON($(this).attr('href'), function(response) {
787
     $.getJSON($(this).attr('href'), function(response) {
777
       
788
       
778
-      if (response.status == 'mustbeconnected')
779
-      {
780
-        $(location).attr('href', url_home);
781
-      }
789
+      window.ResponseController.execute(
790
+        response,
791
+        function(){},
792
+        function(){}
793
+      );
782
       
794
       
783
       // On prépare le tagBox
795
       // On prépare le tagBox
784
       li.html(response.html);
796
       li.html(response.html);
801
       });
813
       });
802
       $('form[name="'+response.form_name+'"]').ajaxForm(function(response){
814
       $('form[name="'+response.form_name+'"]').ajaxForm(function(response){
803
         
815
         
804
-        if (response.status == 'mustbeconnected')
805
-        {
806
-          $(location).attr('href', url_home);
807
-        }
816
+        window.ResponseController.execute(
817
+        response,
818
+        function(){},
819
+        function(){}
820
+      );
808
         
821
         
809
         var li = $('li#'+response.dom_id);
822
         var li = $('li#'+response.dom_id);
810
         
823
         
1419
   
1432
   
1420
   function element_add_proceed_data_apis(response)
1433
   function element_add_proceed_data_apis(response)
1421
   {
1434
   {
1422
-    if (response.status == 'mustbeconnected')
1423
-    {
1424
-      $(location).attr('href', url_home);
1425
-    }
1435
+    window.ResponseController.execute(
1436
+        response,
1437
+        function(){},
1438
+        function(){}
1439
+      );
1426
 
1440
 
1427
     if (response.status == 'success')
1441
     if (response.status == 'success')
1428
     {
1442
     {
1599
     $('img.elements_more_loader').show();
1613
     $('img.elements_more_loader').show();
1600
     $.getJSON($('input#get_elements_url').val()+'/'+array2json(tags_ids_for_filter), function(response){
1614
     $.getJSON($('input#get_elements_url').val()+'/'+array2json(tags_ids_for_filter), function(response){
1601
       
1615
       
1602
-      if (response.status == 'mustbeconnected')
1603
-      {
1604
-        $(location).attr('href', url_home);
1605
-      }
1616
+      window.ResponseController.execute(
1617
+        response,
1618
+        function(){},
1619
+        function(){}
1620
+      );
1606
       
1621
       
1607
       $('ul.elements').html(response.html);
1622
       $('ul.elements').html(response.html);
1608
       
1623
       
1733
           data: $('form[name="search"]').serialize(),
1748
           data: $('form[name="search"]').serialize(),
1734
           success: function(response){
1749
           success: function(response){
1735
           
1750
           
1736
-            if (response.status == 'mustbeconnected')
1737
-            {
1738
-              alert('pouet!');
1739
-            }
1751
+            window.ResponseController.execute(
1752
+        response,
1753
+        function(){},
1754
+        function(){}
1755
+      );
1740
 
1756
 
1741
             if (response.status == 'success' && response.count)
1757
             if (response.status == 'success' && response.count)
1742
             {
1758
             {
1791
       data: $('form[name="search"]').serialize(),
1807
       data: $('form[name="search"]').serialize(),
1792
       success: function(response){
1808
       success: function(response){
1793
       
1809
       
1794
-        if (response.status == 'mustbeconnected')
1795
-        {
1796
-          $(location).attr('href', url_home);
1797
-        }
1810
+        window.ResponseController.execute(
1811
+        response,
1812
+        function(){},
1813
+        function(){}
1814
+      );
1798
 
1815
 
1799
         if (response.status == 'success')
1816
         if (response.status == 'success')
1800
         {
1817
         {
1916
       li_element.find('form.add_comment').show();
1933
       li_element.find('form.add_comment').show();
1917
       
1934
       
1918
       li_element.find('form.add_comment').ajaxForm(function(response) {
1935
       li_element.find('form.add_comment').ajaxForm(function(response) {
1919
-        if (response.status == 'mustbeconnected')
1920
-        {
1921
-          $(location).attr('href', url_home);
1922
-        }
1936
+        window.ResponseController.execute(
1937
+        response,
1938
+        function(){},
1939
+        function(){}
1940
+      );
1923
 
1941
 
1924
         li_element.find('img.comments_loader').hide();
1942
         li_element.find('img.comments_loader').hide();
1925
         
1943
         
1997
         
2015
         
1998
         li.find('img.comment_loader').hide();
2016
         li.find('img.comment_loader').hide();
1999
         
2017
         
2000
-        if (response.status == 'mustbeconnected')
2001
-        {
2002
-          $(location).attr('href', url_home);
2003
-        }
2018
+        window.ResponseController.execute(
2019
+        response,
2020
+        function(){},
2021
+        function(){}
2022
+      );
2004
         
2023
         
2005
         if (response.status == 'success')
2024
         if (response.status == 'success')
2006
         {
2025
         {
2040
     
2059
     
2041
     $.getJSON($(this).attr('href'), function(response) {
2060
     $.getJSON($(this).attr('href'), function(response) {
2042
       
2061
       
2043
-      if (response.status == 'mustbeconnected')
2044
-      {
2045
-        $(location).attr('href', url_home);
2046
-      }
2062
+      window.ResponseController.execute(
2063
+        response,
2064
+        function(){},
2065
+        function(){}
2066
+      );
2047
       
2067
       
2048
       li.html(response.html);
2068
       li.html(response.html);
2049
       // On rend ce formulaire ajaxFormable
2069
       // On rend ce formulaire ajaxFormable
2058
         li = $('li#'+response.dom_id);
2078
         li = $('li#'+response.dom_id);
2059
         li.find('img.comment_loader').hide();
2079
         li.find('img.comment_loader').hide();
2060
         
2080
         
2061
-        if (response.status == 'mustbeconnected')
2062
-        {
2063
-          $(location).attr('href', url_home);
2064
-        }
2081
+        window.ResponseController.execute(
2082
+        response,
2083
+        function(){},
2084
+        function(){}
2085
+      );
2065
         
2086
         
2066
         if (response.status == 'success')
2087
         if (response.status == 'success')
2067
         {
2088
         {
2124
       
2145
       
2125
       $.getJSON(link.attr('href'), function(response){
2146
       $.getJSON(link.attr('href'), function(response){
2126
         
2147
         
2127
-        if (response.status == 'mustbeconnected')
2128
-        {
2129
-          $(location).attr('href', url_home);
2130
-        }
2148
+        window.ResponseController.execute(
2149
+        response,
2150
+        function(){},
2151
+        function(){}
2152
+      );
2131
       });
2153
       });
2132
       
2154
       
2133
       $('div.question').fadeOut();
2155
       $('div.question').fadeOut();
2158
       
2180
       
2159
       loader.hide();
2181
       loader.hide();
2160
     
2182
     
2161
-      if (response.status == 'mustbeconnected')
2162
-      {
2163
-        $(location).attr('href', url_home);
2164
-      }
2183
+      window.ResponseController.execute(
2184
+        response,
2185
+        function(){},
2186
+        function(){}
2187
+      );
2165
       
2188
       
2166
       if (response.status == 'success')
2189
       if (response.status == 'success')
2167
       {
2190
       {
2260
     
2283
     
2261
     $.getJSON(link.attr('href'), function(response){
2284
     $.getJSON(link.attr('href'), function(response){
2262
         
2285
         
2263
-      if (response.status == 'mustbeconnected')
2264
-      {
2265
-        $(location).attr('href', url_home);
2266
-      }
2286
+      window.ResponseController.execute(
2287
+        response,
2288
+        function(){},
2289
+        function(){}
2290
+      );
2267
       
2291
       
2268
       if (response.status == 'success')
2292
       if (response.status == 'success')
2269
       {
2293
       {
2326
         });
2350
         });
2327
         $('form[name="'+response.form_name+'"]').ajaxForm(function(response){
2351
         $('form[name="'+response.form_name+'"]').ajaxForm(function(response){
2328
 
2352
 
2329
-          if (response.status == 'mustbeconnected')
2330
-          {
2331
-            $(location).attr('href', url_home);
2332
-          }
2353
+          window.ResponseController.execute(
2354
+        response,
2355
+        function(){},
2356
+        function(){}
2357
+      );
2333
 
2358
 
2334
           if (response.status == 'success')
2359
           if (response.status == 'success')
2335
           {
2360
           {
2379
     
2404
     
2380
     $.getJSON($(this).attr('href'), function(response) {
2405
     $.getJSON($(this).attr('href'), function(response) {
2381
       
2406
       
2382
-      if (response.status == 'mustbeconnected')
2383
-      {
2384
-        $(location).attr('href', url_home);
2385
-      }
2407
+      window.ResponseController.execute(
2408
+        response,
2409
+        function(){},
2410
+        function(){}
2411
+      );
2386
       
2412
       
2387
       li.find('img.element_loader').hide();
2413
       li.find('img.element_loader').hide();
2388
       
2414
       
2406
     
2432
     
2407
     $.getJSON($(this).attr('href'), function(response) {
2433
     $.getJSON($(this).attr('href'), function(response) {
2408
       
2434
       
2409
-      if (response.status == 'mustbeconnected')
2410
-      {
2411
-        $(location).attr('href', url_home);
2412
-      }
2435
+      window.ResponseController.execute(
2436
+        response,
2437
+        function(){},
2438
+        function(){}
2439
+      );
2413
       
2440
       
2414
       li.find('img.element_loader').hide();
2441
       li.find('img.element_loader').hide();
2415
       
2442
       
2432
     
2459
     
2433
     $.getJSON($(this).attr('href'), function(response) {
2460
     $.getJSON($(this).attr('href'), function(response) {
2434
       
2461
       
2435
-      if (response.status == 'mustbeconnected')
2436
-      {
2437
-        $(location).attr('href', url_home);
2438
-      }
2462
+      window.ResponseController.execute(
2463
+        response,
2464
+        function(){},
2465
+        function(){}
2466
+      );
2439
       
2467
       
2440
       li.find('img.element_loader').hide();
2468
       li.find('img.element_loader').hide();
2441
       
2469
       
2497
       $('div.question').fadeOut();
2525
       $('div.question').fadeOut();
2498
       $.getJSON(link.attr('href'), function(response){
2526
       $.getJSON(link.attr('href'), function(response){
2499
         
2527
         
2500
-        if (response.status == 'mustbeconnected')
2501
-        {
2502
-          $(location).attr('href', url_home);
2503
-        }
2528
+        window.ResponseController.execute(
2529
+        response,
2530
+        function(){},
2531
+        function(){}
2532
+      );
2504
         
2533
         
2505
         // On affiche l'élément que si on voit que le formulaire est sur la page
2534
         // On affiche l'élément que si on voit que le formulaire est sur la page
2506
         // Sinon c'est qu'on est sur une page ou on a pas normalement la possibilité
2535
         // Sinon c'est qu'on est sur une page ou on a pas normalement la possibilité
2744
     link = $(this);
2773
     link = $(this);
2745
     $.getJSON(link.attr('href'), function(response) {
2774
     $.getJSON(link.attr('href'), function(response) {
2746
       
2775
       
2747
-      if (response.status == 'mustbeconnected')
2748
-      {
2749
-        $(location).attr('href', url_home);
2750
-      }
2776
+      window.ResponseController.execute(
2777
+        response,
2778
+        function(){},
2779
+        function(){}
2780
+      );
2751
       
2781
       
2752
        if (response.status == 'success')
2782
        if (response.status == 'success')
2753
        {
2783
        {
2796
     var link = $(this);
2826
     var link = $(this);
2797
     $.getJSON($(this).attr('href'), function(response) {
2827
     $.getJSON($(this).attr('href'), function(response) {
2798
      
2828
      
2799
-      if (response.status == 'mustbeconnected')
2800
-      {
2801
-        $(location).attr('href', url_home);
2802
-      }
2829
+      window.ResponseController.execute(
2830
+        response,
2831
+        function(){},
2832
+        function(){}
2833
+      );
2803
       
2834
       
2804
       if (response.status == 'success')
2835
       if (response.status == 'success')
2805
       {
2836
       {
2824
     
2855
     
2825
     $.getJSON($(this).attr('href')+'/'+newtag, function(response) {
2856
     $.getJSON($(this).attr('href')+'/'+newtag, function(response) {
2826
      
2857
      
2827
-      if (response.status == 'mustbeconnected')
2828
-      {
2829
-        $(location).attr('href', url_home);
2830
-      }
2858
+      window.ResponseController.execute(
2859
+        response,
2860
+        function(){},
2861
+        function(){}
2862
+      );
2831
       
2863
       
2832
       if (response.status == 'error')
2864
       if (response.status == 'error')
2833
       {
2865
       {
2878
     var link = $(this);
2910
     var link = $(this);
2879
     $.getJSON($(this).attr('href'), function(response) {
2911
     $.getJSON($(this).attr('href'), function(response) {
2880
      
2912
      
2881
-      if (response.status == 'mustbeconnected')
2882
-      {
2883
-        $(location).attr('href', url_home);
2884
-      }
2913
+      window.ResponseController.execute(
2914
+        response,
2915
+        function(){},
2916
+        function(){}
2917
+      );
2885
       
2918
       
2886
       if (response.status == 'success')
2919
       if (response.status == 'success')
2887
       {
2920
       {
3045
     return false;
3078
     return false;
3046
    });
3079
    });
3047
    
3080
    
3081
+   /*
3082
+    * tour launch manually
3083
+    */
3084
+   
3085
+   $('a#launch_tour').click(function(){
3086
+     window.start_visit_tour();
3087
+   });
3048
    
3088
    
3049
    
3089
    
3050
 });
3090
 });

+ 1 - 1
src/Muzich/CoreBundle/Resources/views/Component/element_add_buttons.html.twig View File

5
   {% set close_class = ''%}
5
   {% set close_class = ''%}
6
 {% endif %}
6
 {% endif %}
7
 
7
 
8
-<a href="#" id="element_add_link" class="button gradient {{ add_class }} {% if not app.user %}mustbeconnected{% endif %}">
8
+<a href="#" id="element_add_link" class="button gradient {{ add_class }}">
9
   {{ 'home.add_element'|trans({}, 'navigationui') }}
9
   {{ 'home.add_element'|trans({}, 'navigationui') }}
10
   <img src="{{ asset('/img/icon_dart_right_white.png') }}" alt="" />
10
   <img src="{{ asset('/img/icon_dart_right_white.png') }}" alt="" />
11
 </a>
11
 </a>

+ 107 - 93
src/Muzich/CoreBundle/Resources/views/HelpTour/home.html.twig View File

1
 {% autoescape false %}
1
 {% autoescape false %}
2
   <script>
2
   <script>
3
     $(document).ready(function(){ 
3
     $(document).ready(function(){ 
4
-      $.aSimpleTour({
5
-        data : [
6
-          { 
7
-            element: '#elements_list', 
8
-            tooltip : {{ 'help_tour.home.elements.tooltip'|trans({}, 'text') }},
9
-            position : 'T',
10
-            text : {{ 'help_tour.home.elements.tour'|trans({}, 'text') }},
11
-            tooltipCallback : function(){ $('#tabs_tag_search_no_tags').trigger('click'); }
12
-          },
13
-          { 
14
-            element: 'ul.elements li:first td.element_thumbnail', 
15
-            text : {{ 'help_tour.home.element.tour'|trans({}, 'text') }},
16
-            tooltip: {{ 'help_tour.home.element.play'|trans({}, 'text') }},
17
-            position : 'R'
18
-          },
19
-          { 
20
-            element: 'ul.elements li:first ul.element_links_actions',
21
-            text : {{ 'help_tour.home.element.tour'|trans({}, 'text') }},
22
-            tooltip: {{ 'help_tour.home.element.actions'|trans({}, 'text') }},
23
-            position : 'L'
24
-          },
25
-          { 
26
-            element: 'ul.elements li:first ul.element_thumb_actions',
27
-            text : {{ 'help_tour.home.element.tour'|trans({}, 'text') }},
28
-            tooltip: {{ 'help_tour.home.element.likefav'|trans({}, 'text') }},
29
-            position : 'R'
30
-          },
31
-          { 
32
-            element: '#tabs_tag_search_no_tags',
33
-            text : {{ 'help_tour.home.filters.tour'|trans({}, 'text') }},
34
-            tooltip: {{ 'help_tour.home.filters.notags'|trans({}, 'text') }},
35
-            position : 'B'
36
-          },
37
-          { 
38
-            element: '#tabs_tag_search_with_tags',
39
-            text : {{ 'help_tour.home.filters.tour'|trans({}, 'text') }},
40
-            tooltip: {{ 'help_tour.home.filters.withtags'|trans({}, 'text') }},
41
-            position : 'T',
42
-            tooltipCallback : function(){ $('#tabs_tag_search_with_tags').trigger('click'); }
43
-          },
44
-          { 
45
-            element: '#header_menu a.all_network',
46
-            text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
47
-            tooltip: {{ 'help_tour.home.network.public'|trans({}, 'text') }},
48
-            position : 'B'
49
-          },
50
-          { 
51
-            element: '#link_all_network',
52
-            text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
53
-            tooltip: {{ 'help_tour.home.network.private'|trans({}, 'text') }},
54
-            position : 'B'
55
-          },
56
-          { 
57
-            element: '#mainbox',
58
-            text : {{ 'help_tour.home.addelement.tour'|trans({}, 'text') }},
59
-            tooltip: {{ 'help_tour.home.addelement.url'|trans({}, 'text') }},
60
-            position : 'T',
61
-            tooltipCallback : function(){ 
62
-              $('#element_add_link').trigger('click'); 
63
-              $('#element_add_url').val('http://www.jamendo.com/fr/list/a114042/falling-apart');
64
-            }
65
-          },
66
-          { 
67
-            element: '#mainbox',
68
-            text : {{ 'help_tour.home.addelement.tour'|trans({}, 'text') }},
69
-            tooltip: {{ 'help_tour.home.addelement.form'|trans({}, 'text') }},
70
-            position : 'T',
71
-            tooltipCallback : function(){ 
72
-              $('#element_add_url').val('http://www.jamendo.com/fr/list/a114042/falling-apart');
73
-              $('#form_add_first_part input[type="submit"]').trigger('click');
4
+      
5
+      window.start_visit_tour = function()
6
+      {
7
+        
8
+        $.aSimpleTour({
9
+          data : [
10
+            { 
11
+              element: '#elements_list', 
12
+              tooltip : {{ 'help_tour.home.elements.tooltip'|trans({}, 'text') }},
13
+              position : 'T',
14
+              text : {{ 'help_tour.home.elements.tour'|trans({}, 'text') }},
15
+              tooltipCallback : function(){ $('#tabs_tag_search_no_tags').trigger('click'); }
16
+            },
17
+            { 
18
+              element: 'ul.elements li:first td.element_thumbnail', 
19
+              text : {{ 'help_tour.home.element.tour'|trans({}, 'text') }},
20
+              tooltip: {{ 'help_tour.home.element.play'|trans({}, 'text') }},
21
+              position : 'R'
22
+            },
23
+            { 
24
+              element: 'ul.elements li:first ul.element_links_actions',
25
+              text : {{ 'help_tour.home.element.tour'|trans({}, 'text') }},
26
+              tooltip: {{ 'help_tour.home.element.actions'|trans({}, 'text') }},
27
+              position : 'L'
28
+            },
29
+            { 
30
+              element: 'ul.elements li:first ul.element_thumb_actions',
31
+              text : {{ 'help_tour.home.element.tour'|trans({}, 'text') }},
32
+              tooltip: {{ 'help_tour.home.element.likefav'|trans({}, 'text') }},
33
+              position : 'R'
34
+            },
35
+            { 
36
+              element: '#tabs_tag_search_no_tags',
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'); }
47
+            },
48
+            { 
49
+              element: '#header_menu li a.all_network',
50
+              text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
51
+              tooltip: {{ 'help_tour.home.network.public'|trans({}, 'text') }},
52
+              position : 'B'
53
+            },
54
+            { 
55
+              element: '#header_menu li a.all_network',
56
+              text : {{ 'help_tour.home.network.tour'|trans({}, 'text') }},
57
+              tooltip: {{ 'help_tour.home.network.private'|trans({}, 'text') }},
58
+              position : 'B'
59
+            },
60
+            { 
61
+              element: '#mainbox',
62
+              text : {{ 'help_tour.home.addelement.tour'|trans({}, 'text') }},
63
+              tooltip: {{ 'help_tour.home.addelement.url'|trans({}, 'text') }},
64
+              position : 'T',
65
+              tooltipCallback : function(){ 
66
+                $('#element_add_link').trigger('click'); 
67
+                $('#element_add_url').val('http://www.jamendo.com/fr/list/a114042/falling-apart');
68
+              }
69
+            },
70
+            { 
71
+              element: '#mainbox',
72
+              text : {{ 'help_tour.home.addelement.tour'|trans({}, 'text') }},
73
+              tooltip: {{ 'help_tour.home.addelement.form'|trans({}, 'text') }},
74
+              position : 'T',
75
+              tooltipCallback : function(){ 
76
+                $('#element_add_url').val('http://www.jamendo.com/fr/list/a114042/falling-apart');
77
+                $('#form_add_first_part input[type="submit"]').trigger('click');
78
+              }
79
+            },
80
+            { 
81
+              element: '#header_logo',
82
+              tooltip : {{ 'help_tour.home.end.go'|trans({}, 'text') }},
83
+              text : {{ 'help_tour.home.end.tour'|trans({}, 'text') }}
74
             }
84
             }
85
+          ],
86
+          controlsPosition : 'TR',
87
+          welcomeMessage : {{ 'help_tour.home.welcome.tour'|trans({}, 'text') }},
88
+          tooltipColors:  { 'color' : 'black', 'backgroud' : ''},
89
+          controlsColors: { 'color' : 'black', 'backgroud' : ''},
90
+          buttons : { 
91
+            next:   '{{ 'help_tour.buttons.next'|trans({}, 'text') }}', 
92
+            prev:   '{{ 'help_tour.buttons.prev'|trans({}, 'text') }}', 
93
+            start:  '{{ 'help_tour.buttons.start'|trans({}, 'text') }}', 
94
+            end:    '{% if app.user %}{{ 'help_tour.buttons.end'|trans({}, 'text') }}{% else %}{{ 'help_tour.buttons.close'|trans({}, 'text') }}{% endif %}' 
75
           },
95
           },
76
-          { 
77
-            element: '#header_logo',
78
-            tooltip : {{ 'help_tour.home.end.go'|trans({}, 'text') }},
79
-            text : {{ 'help_tour.home.end.tour'|trans({}, 'text') }}
96
+          endCallback: function(){ 
97
+            {% if app.user %}
98
+              $('#element_add_close_link').trigger('click');
99
+              JQueryJson("{{ path('user_hide_help', {
100
+                'help_id' : 'home',
101
+                'token'   :  app.user.getPersonalHash('updateHelpAction')
102
+              }) }}", {}, $.noop);
103
+            {% else %}
104
+              $('#element_add_close_link').trigger('click');
105
+            {% endif %}
80
           }
106
           }
81
-        ],
82
-        controlsPosition : 'TR',
83
-        welcomeMessage : {{ 'help_tour.home.welcome.tour'|trans({}, 'text') }},
84
-        tooltipColors:  { 'color' : 'black', 'backgroud' : ''},
85
-        controlsColors: { 'color' : 'black', 'backgroud' : ''},
86
-        buttons : { 
87
-          next:   '{{ 'help_tour.buttons.next'|trans({}, 'text') }}', 
88
-          prev:   '{{ 'help_tour.buttons.prev'|trans({}, 'text') }}', 
89
-          start:  '{{ 'help_tour.buttons.start'|trans({}, 'text') }}', 
90
-          end:    '{{ 'help_tour.buttons.end'|trans({}, 'text') }}' 
91
-        },
92
-        endCallback: function(){ 
93
-          $('#element_add_close_link').trigger('click');
94
-          JQueryJson("{{ path('user_hide_help', {
95
-            'help_id' : 'home',
96
-            'token'   :  app.user.getPersonalHash('updateHelpAction')
97
-          }) }}", {}, $.noop);
98
         }
107
         }
99
-      }
100
 
108
 
101
-      );
109
+        );
110
+      }
111
+      
112
+      {% if start %}
113
+        window.start_visit_tour();
114
+      {% endif %}
115
+      
102
     });
116
     });
103
   </script>
117
   </script>
104
 {% endautoescape %}
118
 {% endautoescape %}

+ 5 - 0
src/Muzich/CoreBundle/Resources/views/Layout/side.html.twig View File

15
   {% endif %}
15
   {% endif %}
16
 
16
 
17
 {% else %}
17
 {% else %}
18
+
18
   <div class="side_margin_top"></div>
19
   <div class="side_margin_top"></div>
19
   
20
   
20
   <div class="center">
21
   <div class="center">
21
     <a id="know_more" class="helpbox button" href="{{ path('helpbox_bootstrap', {'ressource_id':'know_more'}) }}" title="{{ 'help.know_more'|trans({}, 'navigationui') }}">
22
     <a id="know_more" class="helpbox button" href="{{ path('helpbox_bootstrap', {'ressource_id':'know_more'}) }}" title="{{ 'help.know_more'|trans({}, 'navigationui') }}">
22
       {{ 'help.know_more'|trans({}, 'navigationui') }}
23
       {{ 'help.know_more'|trans({}, 'navigationui') }}
23
     </a>
24
     </a>
25
+    <a id="launch_tour" class="button" href="#" title="{{ 'help.maunch_tour'|trans({}, 'navigationui') }}">
26
+      {{ 'help.launch_tour'|trans({}, 'navigationui') }}
27
+    </a>
24
   </div>
28
   </div>
25
   
29
   
26
 {% endif %}
30
 {% endif %}
29
     {% render "MuzichCoreBundle:Search:renderGlobalSearchForm" %}
33
     {% render "MuzichCoreBundle:Search:renderGlobalSearchForm" %}
30
   </div>
34
   </div>
31
   
35
   
36
+  
32
   {% include 'MuzichCoreBundle:Layout:social.html.twig' %}
37
   {% include 'MuzichCoreBundle:Layout:social.html.twig' %}
33
 
38
 
34
 {% if app.user %}
39
 {% if app.user %}

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

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') }}" >
15
+      <a href="{{ path('home') }}" class="all_network">
16
         {{ 'filter.network_all'|trans({}, 'userui') }}
16
         {{ 'filter.network_all'|trans({}, 'userui') }}
17
       </a>
17
       </a>
18
     </li>
18
     </li>
26
     </li>
26
     </li>
27
   {% else %}
27
   {% else %}
28
     <li>
28
     <li>
29
-      <a id="link_my_network" href="#" class="mustbeconnected" >
29
+      <a id="link_my_network" href="#" class="mustbeconnected my_network" >
30
         {{ 'filter.network_my'|trans({}, 'userui') }}
30
         {{ 'filter.network_my'|trans({}, 'userui') }}
31
       </a>
31
       </a>
32
     </li>
32
     </li>

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

14
 
14
 
15
   {% if app.user %}
15
   {% if app.user %}
16
     {% if app.user.wantSeeHelp('home') %}
16
     {% if app.user.wantSeeHelp('home') %}
17
-      {% include 'MuzichCoreBundle:HelpTour:home.html.twig' %}
17
+      {% include 'MuzichCoreBundle:HelpTour:home.html.twig' with {'start' : true} %}
18
     {% endif %}
18
     {% endif %}
19
+  {% else %}
20
+    {% include 'MuzichCoreBundle:HelpTour:home.html.twig' with {'start' : false} %}
19
   {% endif %}
21
   {% endif %}
20
 
22
 
21
   {# TODO: Cette partie de javascript ne devra plus exister après la réecriture du code javascript #}
23
   {# TODO: Cette partie de javascript ne devra plus exister après la réecriture du code javascript #}