Parcourir la source

Création de la page (virge) mes favoris.

bastien il y a 12 ans
Parent
révision
38bb1e45ba

+ 1 - 0
app/Resources/translations/navigationui.fr.yml Voir le fichier

@@ -2,6 +2,7 @@
2 2
 container_menu:
3 3
   the_network:          Le réseau
4 4
   my_network:           Mon réseau
5
+  my_favorites:         Mes favoris
5 6
   
6 7
 top_bar:
7 8
   my_account:           Mon compte

+ 14 - 2
src/Muzich/CoreBundle/Resources/views/Menu/containerMenu.html.twig Voir le fichier

@@ -14,12 +14,24 @@
14 14
 
15 15
 {% if mygroups %}
16 16
 
17
-  <ul id="top-tabs-my-groups" {% if active == 'mygroups' %} class="active" {% endif %}>
18
-    <li {% if active == 'mygroups' %} class="active" {% endif %}>
17
+  <ul class="top-tabs-right {% if active == 'mygroups' %}active{% endif %}" id="top-tabs-my-groups" {% if active == 'mygroups' %} class="active" {% endif %}>
18
+    <li>
19 19
       <a href="{{ path('groups_own_list') }}" >
20 20
         {{ 'network.mygroups'|trans({}, 'navigationui') }}
21 21
       </a>
22 22
     </li>
23 23
   </ul>
24 24
 
25
+{% endif %}
26
+
27
+{% if myfavorites %}
28
+
29
+  <ul class="top-tabs-right {% if active == 'myfavorites' %}active{% endif %}" id="top-tabs-my-favorites" {% if active == 'myfavorites' %} class="active" {% endif %}>
30
+    <li>
31
+      <a href="{{ path('favorites_my_list') }}" >
32
+        {{ 'container_menu.my_favorites'|trans({}, 'navigationui') }}
33
+      </a>
34
+    </li>
35
+  </ul>
36
+
25 37
 {% endif %}

+ 10 - 0
src/Muzich/FavoriteBundle/Controller/FavoriteController.php Voir le fichier

@@ -54,4 +54,14 @@ class FavoriteController extends Controller
54 54
     }
55 55
   }
56 56
   
57
+  /**
58
+   * @Template()
59
+   */
60
+  public function myListAction()
61
+  {
62
+    
63
+    
64
+    return array();
65
+  }
66
+  
57 67
 }

+ 3 - 0
src/Muzich/FavoriteBundle/Resources/config/routing.yml Voir le fichier

@@ -3,3 +3,6 @@ favorite_add:
3 3
   pattern:   /favorite/add/{id}/{token}
4 4
   defaults: { _controller: MuzichFavoriteBundle:Favorite:add }
5 5
 
6
+favorites_my_list:
7
+  pattern:   /favorites
8
+  defaults: { _controller: MuzichFavoriteBundle:Favorite:myList }

+ 9 - 0
src/Muzich/FavoriteBundle/Resources/views/Favorite/myList.html.twig Voir le fichier

@@ -0,0 +1,9 @@
1
+{% extends "MuzichFavoriteBundle::layout.html.twig" %}
2
+
3
+{% block title %}Mes favoris{% endblock %}
4
+
5
+{% block content %}
6
+
7
+
8
+    
9
+{% endblock %}

+ 5 - 1
src/Muzich/FavoriteBundle/Resources/views/layout.html.twig Voir le fichier

@@ -6,7 +6,11 @@
6 6
 
7 7
 {% block main_content %}
8 8
   
9
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': '', 'mygroups': false } %}
9
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 
10
+    'active': 'myfavorites', 
11
+    'mygroups': false, 
12
+    'myfavorites': true 
13
+  } %}
10 14
   
11 15
   {% block content %}{% endblock %}
12 16
   

+ 1 - 1
src/Muzich/GroupBundle/Resources/views/layout.html.twig Voir le fichier

@@ -6,7 +6,7 @@
6 6
 
7 7
 {% block main_content %}
8 8
   
9
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'mygroups', 'mygroups': true } %}
9
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'mygroups', 'mygroups': true, 'myfavorites': false } %}
10 10
   
11 11
   {% block content %}{% endblock %}
12 12
   

+ 1 - 1
src/Muzich/HomeBundle/Resources/views/layout.html.twig Voir le fichier

@@ -6,7 +6,7 @@
6 6
 
7 7
 {% block main_content %}
8 8
   
9
-    {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'public', 'mygroups': false } %}
9
+    {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'public', 'mygroups': false, 'myfavorites': true } %}
10 10
   
11 11
     {% block content %}{% endblock %}
12 12
   

+ 1 - 1
src/Muzich/MynetworkBundle/Resources/views/layout.html.twig Voir le fichier

@@ -6,7 +6,7 @@
6 6
 
7 7
 {% block main_content %}
8 8
   
9
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'private', 'mygroups': true } %}
9
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'private', 'mygroups': true, 'myfavorites': false } %}
10 10
   
11 11
   {% block content %}{% endblock %}
12 12
   

+ 1 - 1
src/Muzich/UserBundle/Resources/views/layout.html.twig Voir le fichier

@@ -6,7 +6,7 @@
6 6
 
7 7
 {% block main_content %}
8 8
   
9
-    {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': null, 'mygroups': false } %}
9
+    {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': null, 'mygroups': false, 'myfavorites': false } %}
10 10
   
11 11
     {% block content %}{% endblock %}
12 12
   

+ 6 - 6
web/bundles/muzichcore/css/main.css Voir le fichier

@@ -45,7 +45,7 @@
45 45
   color: #00d0de;
46 46
 }
47 47
 
48
-#container #top-tabs, #container #top-tabs-my-groups
48
+#container #top-tabs, .top-tabs-right
49 49
 {
50 50
   float: left;
51 51
   list-style: none outside none;
@@ -53,7 +53,7 @@
53 53
   padding: 0;
54 54
 }
55 55
 
56
-#container #top-tabs li, #container #top-tabs-my-groups
56
+#container #top-tabs li, .top-tabs-right
57 57
 {
58 58
   float: left;
59 59
   margin-left: 0px;
@@ -73,24 +73,24 @@
73 73
   -webkit-border-radius: 5px 5px 0px 0px;
74 74
 }
75 75
 
76
-#container #top-tabs li.active, #container #top-tabs-my-groups li.active
76
+#container #top-tabs li.active, .top-tabs-right ul.active, .top-tabs-right ul.active li
77 77
 {
78 78
   background-color: white;
79 79
 }
80 80
 
81
-#container #top-tabs li a, #container #top-tabs-my-groups li a
81
+#container #top-tabs li a, #container .top-tabs-right li a
82 82
 {
83 83
   text-decoration: none;
84 84
   color: black;
85 85
 }
86 86
 
87
-#container #top-tabs-my-groups
87
+.top-tabs-right
88 88
 {
89 89
   float: right;
90 90
   margin-right: -5px;
91 91
 }
92 92
 
93
-#container #top-tabs-my-groups.active
93
+.top-tabs-right.active
94 94
 {
95 95
   background-color: white;
96 96
 }