Browse Source

Evolution #126: Petites modifs ergonomiques

bastien 13 years ago
parent
commit
2c8ed6eea3

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

4
   my_network:           Mon réseau
4
   my_network:           Mon réseau
5
   my_favorites:         Mes favoris
5
   my_favorites:         Mes favoris
6
   my_feeds:             Mes diffusions
6
   my_feeds:             Mes diffusions
7
+  return:               Retour
7
   
8
   
8
 top_bar:
9
 top_bar:
9
   my_account:           Mon compte (%name%)
10
   my_account:           Mon compte (%name%)

+ 1 - 0
app/Resources/translations/users.fr.yml View File

4
   following:                    Suivi
4
   following:                    Suivi
5
   notfollow:                    Ne plus suivre
5
   notfollow:                    Ne plus suivre
6
   view_favorites:               Voir les favoris
6
   view_favorites:               Voir les favoris
7
+  view_profile:                 Voir le profil
7
   stop_follow:                  Ne plus suivre
8
   stop_follow:                  Ne plus suivre
8
   show:
9
   show:
9
     title:                      Diffusions de %name%
10
     title:                      Diffusions de %name%

+ 2 - 0
src/Muzich/CoreBundle/Resources/views/Info/about.html.twig View File

4
 
4
 
5
 {% block main_content %}
5
 {% block main_content %}
6
 
6
 
7
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': 'myfavorites'} %}
8
+
7
   <h1>Découvrez et partagez la musique d'internet</h1>
9
   <h1>Découvrez et partagez la musique d'internet</h1>
8
 
10
 
9
   <p>
11
   <p>

+ 3 - 1
src/Muzich/CoreBundle/Resources/views/Info/development.html.twig View File

4
 
4
 
5
 {% block main_content %}
5
 {% block main_content %}
6
 
6
 
7
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': 'myfavorites'} %}
8
+
7
   <h1>Muzich est en cours de construction</h1>
9
   <h1>Muzich est en cours de construction</h1>
8
 
10
 
9
   <p>
11
   <p>
10
-    Actuellement vous utilisez la version <strong>0.2 de</strong> Muzich. De nombreuses 
12
+    Actuellement vous utilisez la version <strong>0.3</strong> de Muzich. De nombreuses 
11
     fonctionnalités doivent voir le jours au fur et a mesure du développement.
13
     fonctionnalités doivent voir le jours au fur et a mesure du développement.
12
   </p>
14
   </p>
13
 
15
 

+ 2 - 0
src/Muzich/CoreBundle/Resources/views/Info/sites.html.twig View File

4
 
4
 
5
 {% block main_content %}
5
 {% block main_content %}
6
 
6
 
7
+  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': 'myfavorites'} %}
8
+
7
   <h1>Liste des sites supportés</h1>
9
   <h1>Liste des sites supportés</h1>
8
 
10
 
9
   <p>
11
   <p>

+ 43 - 29
src/Muzich/CoreBundle/Resources/views/Menu/containerMenu.html.twig View File

1
 
1
 
2
-<ul id="top-tabs">
3
-  <li {% if active == 'public' %} class="active" {% endif %}>
4
-    <a href="{{ path('home') }}">
5
-      {{ 'container_menu.the_network'|trans({}, 'navigationui') }}
6
-    </a>
7
-  </li>
8
-  <li {% if active == 'private' %} class="active" {% endif %}>
9
-    <a href="{{ path('mynetwork_index') }}">
10
-      {{ 'container_menu.my_network'|trans({}, 'navigationui') }}
11
-    </a>
12
-  </li>
13
-  <li {% if active == 'myfeeds' %} class="active" {% endif %}>
14
-    <a href="{{ path('show_user', {'slug': app.user.slug}) }}">
15
-      {{ 'container_menu.my_feeds'|trans({}, 'navigationui') }}
16
-    </a>
17
-  </li>
18
-</ul>
2
+{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
19
 
3
 
20
-<ul class="top-tabs-right">
21
-  <li class="{% if active == 'mygroups' %}active{% endif %}">
22
-    <a href="{{ path('groups_own_list') }}" >
23
-      {{ 'network.mygroups'|trans({}, 'navigationui') }}
24
-    </a>
25
-  </li>
26
-  <li class="{% if active == 'myfavorites' %}active{% endif %}">
27
-    <a href="{{ path('favorites_my_list') }}" >
28
-      {{ 'container_menu.my_favorites'|trans({}, 'navigationui') }}
29
-    </a>
30
-  </li>
31
-</ul>
4
+  <ul id="top-tabs">
5
+    <li {% if active == 'public' %} class="active" {% endif %}>
6
+      <a href="{{ path('home') }}">
7
+        {{ 'container_menu.the_network'|trans({}, 'navigationui') }}
8
+      </a>
9
+    </li>
10
+    <li {% if active == 'private' %} class="active" {% endif %}>
11
+      <a href="{{ path('mynetwork_index') }}">
12
+        {{ 'container_menu.my_network'|trans({}, 'navigationui') }}
13
+      </a>
14
+    </li>
15
+    <li {% if active == 'myfeeds' %} class="active" {% endif %}>
16
+      <a href="{{ path('show_user', {'slug': app.user.slug}) }}">
17
+        {{ 'container_menu.my_feeds'|trans({}, 'navigationui') }}
18
+      </a>
19
+    </li>
20
+  </ul>
21
+
22
+  <ul class="top-tabs-right">
23
+    <li class="{% if active == 'mygroups' %}active{% endif %}">
24
+      <a href="{{ path('groups_own_list') }}" >
25
+        {{ 'network.mygroups'|trans({}, 'navigationui') }}
26
+      </a>
27
+    </li>
28
+    <li class="{% if active == 'myfavorites' %}active{% endif %}">
29
+      <a href="{{ path('favorites_my_list') }}" >
30
+        {{ 'container_menu.my_favorites'|trans({}, 'navigationui') }}
31
+      </a>
32
+    </li>
33
+  </ul>
34
+
35
+{% else %}
36
+
37
+  <ul id="top-tabs" >
38
+    <li class="active">
39
+      <a href="{{ path('index') }}">
40
+        {{ 'container_menu.return'|trans({}, 'navigationui') }}
41
+      </a>
42
+    </li>
43
+  </ul>
44
+
45
+{% endif %}

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

10
 	<meta name="description" content="" />
10
 	<meta name="description" content="" />
11
 	<meta name="keywords" content="" />
11
 	<meta name="keywords" content="" />
12
 	<meta name="author" content="" />
12
 	<meta name="author" content="" />
13
-  <link href="apple-touch-icon.png" rel="apple-touch-icon">
13
+  <link href="apple-touch-icon.png" rel="apple-touch-icon" />
14
   
14
   
15
 	<link href="{{ asset('favicon.ico') }}" rel="icon" type="image/x-icon" />
15
 	<link href="{{ asset('favicon.ico') }}" rel="icon" type="image/x-icon" />
16
 	<link href="{{ asset('bundles/muzichcore/css/base.css') }}" rel="stylesheet" media="screen" type="text/css" />
16
 	<link href="{{ asset('bundles/muzichcore/css/base.css') }}" rel="stylesheet" media="screen" type="text/css" />

+ 8 - 0
src/Muzich/FavoriteBundle/Resources/views/Favorite/userList.html.twig View File

6
 
6
 
7
   {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': ''} %}
7
   {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with {'active': ''} %}
8
 
8
 
9
+  <div class="show_options">
10
+    
11
+    <a class="button" href="{{ path('show_user', {'slug' : viewed_user.slug}) }}" >
12
+      {{ 'user.view_profile'|trans({}, 'users') }}
13
+    </a>
14
+    
15
+  </div>
16
+
9
   <h2>{{ 'favorites.user_favorites'|trans({'%name%' : viewed_user.name}, 'network') }}</h2>
17
   <h2>{{ 'favorites.user_favorites'|trans({'%name%' : viewed_user.name}, 'network') }}</h2>
10
 
18
 
11
   {% include "MuzichCoreBundle:Tag:tagsList.favorite.html.twig" with {
19
   {% include "MuzichCoreBundle:Tag:tagsList.favorite.html.twig" with {

+ 17 - 5
web/bundles/muzichcore/css/main.css View File

26
 
26
 
27
 #container h1
27
 #container h1
28
 {
28
 {
29
-  
29
+  margin-top: 11px;
30
 }
30
 }
31
 #container h2
31
 #container h2
32
 {
32
 {
389
 /**/
389
 /**/
390
 
390
 
391
 ul.tagbox {
391
 ul.tagbox {
392
-background: #fff;
392
+
393
 cursor: text;
393
 cursor: text;
394
 border: none;
394
 border: none;
395
 overflow: hidden;
395
 overflow: hidden;
441
 outline: 0;
441
 outline: 0;
442
 line-height:1.2;
442
 line-height:1.2;
443
 padding: 3px 0;
443
 padding: 3px 0;
444
-font-size:12px;
444
+font-size: 105%;
445
 }
445
 }
446
 ul.tagbox a.close {
446
 ul.tagbox a.close {
447
 position: absolute;
447
 position: absolute;
622
 
622
 
623
 ul.tagbox input[type="text"]
623
 ul.tagbox input[type="text"]
624
 {
624
 {
625
-  height: 14px;
625
+  height: 16px;
626
   margin-top: 3px;
626
   margin-top: 3px;
627
-  width: 200px;
627
+  width: 250px;
628
   color: #676767;
628
   color: #676767;
629
   font-weight: bold;
629
   font-weight: bold;
630
 }
630
 }
920
 {
920
 {
921
   background-color: #D9F7FF;
921
   background-color: #D9F7FF;
922
   text-align: center;
922
   text-align: center;
923
+}
924
+
925
+input#element_add_url, input#element_add_name
926
+{
927
+  width: 70%;
928
+  font-size: 110%;
929
+  font-weight: bold;
930
+}
931
+
932
+label#element_add_url, label#element_add_name
933
+{
934
+  
923
 }
935
 }

+ 3 - 0
web/bundles/muzichfavorite/css/favorite.css View File

1
+div.show_options {
2
+    float: right;
3
+}