Browse Source

Evolution #103: Onglet mes groupes

bastien 13 years ago
parent
commit
ec333cd911

+ 12 - 23
src/Muzich/CoreBundle/Resources/views/Menu/containerMenu.html.twig View File

@@ -12,26 +12,15 @@
12 12
   </li>
13 13
 </ul>
14 14
 
15
-{% if mygroups %}
16
-
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
-      <a href="{{ path('groups_own_list') }}" >
20
-        {{ 'network.mygroups'|trans({}, 'navigationui') }}
21
-      </a>
22
-    </li>
23
-  </ul>
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
-
37
-{% endif %}
15
+<ul class="top-tabs-right">
16
+  <li class="{% if active == 'mygroups' %}active{% endif %}">
17
+    <a href="{{ path('groups_own_list') }}" >
18
+      {{ 'network.mygroups'|trans({}, 'navigationui') }}
19
+    </a>
20
+  </li>
21
+  <li class="{% if active == 'myfavorites' %}active{% endif %}">
22
+    <a href="{{ path('favorites_my_list') }}" >
23
+      {{ 'container_menu.my_favorites'|trans({}, 'navigationui') }}
24
+    </a>
25
+  </li>
26
+</ul>

+ 1 - 5
src/Muzich/FavoriteBundle/Resources/views/Favorite/myList.html.twig View File

@@ -4,11 +4,7 @@
4 4
 
5 5
 {% block content %}
6 6
 
7
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 
8
-    'active': 'myfavorites', 
9
-    'mygroups': false, 
10
-    'myfavorites': true 
11
-  } %}
7
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': 'myfavorites'} %}
12 8
 
13 9
   <h2>{{ 'favorites.your_favorites'|trans({}, 'network') }}</h2>
14 10
 

+ 1 - 5
src/Muzich/FavoriteBundle/Resources/views/Favorite/userList.html.twig View File

@@ -4,11 +4,7 @@
4 4
 
5 5
 {% block content %}
6 6
 
7
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 
8
-    'active': '', 
9
-    'mygroups': false, 
10
-    'myfavorites': true 
11
-  } %}
7
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': ''} %}
12 8
 
13 9
   <h2>{{ 'favorites.user_favorites'|trans({'%name%' : viewed_user.name}, 'network') }}</h2>
14 10
 

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

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

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

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

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

@@ -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, 'myfavorites': false } %}
9
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'private' } %}
10 10
   
11 11
   {% block content %}{% endblock %}
12 12
   

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

@@ -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, 'myfavorites': false } %}
9
+    {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': null } %}
10 10
   
11 11
     {% block content %}{% endblock %}
12 12
   

+ 29 - 1
web/bundles/muzichcore/css/main.css View File

@@ -101,7 +101,7 @@ input.button, button.button {
101 101
   padding: 0;
102 102
 }
103 103
 
104
-#container #top-tabs li, .top-tabs-right
104
+#container #top-tabs li
105 105
 {
106 106
   float: left;
107 107
   margin-left: 0px;
@@ -121,6 +121,34 @@ input.button, button.button {
121 121
   -webkit-border-radius: 5px 5px 0px 0px;
122 122
 }
123 123
 
124
+.top-tabs-right
125
+{
126
+  list-style: none outside none;
127
+}
128
+
129
+.top-tabs-right li
130
+{
131
+  float: left;
132
+  padding-top: 3px;
133
+  padding-left: 5px;
134
+  padding-right: 5px;
135
+  padding-bottom: 3px;
136
+  
137
+  background-color: #e9e9e9;
138
+  
139
+  border-top: 1px solid #d5d5d5;
140
+  border-left: 1px solid #d5d5d5;
141
+  border-right: 1px solid #d5d5d5;
142
+  border-radius: 5px 5px 0px 0px;
143
+  -moz-border-radius: 5px 5px 0px 0px;
144
+  -webkit-border-radius: 5px 5px 0px 0px;
145
+}
146
+
147
+.top-tabs-right li.active
148
+{
149
+  background-color: white;
150
+}
151
+
124 152
 #container #top-tabs li.active, .top-tabs-right ul.active, .top-tabs-right ul.active li
125 153
 {
126 154
   background-color: white;