Browse Source

Evolution #150: Reputation

bastien 13 years ago
parent
commit
ced19aaf71

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

7
   view_profile:                 Voir le profil
7
   view_profile:                 Voir le profil
8
   stop_follow:                  Ne plus suivre
8
   stop_follow:                  Ne plus suivre
9
   show:
9
   show:
10
-    title:                      Diffusions de %name%
10
+    title:                      Diffusions de %name%
11
+  reputation:
12
+    name:                       Reputation
13
+    txt:                        points

+ 6 - 0
src/Muzich/HomeBundle/Resources/views/Show/showUser.html.twig View File

26
 
26
 
27
   <h2>{{ 'user.show.title'|trans({'%name%' : viewed_user.name}, 'users') }}</h2>
27
   <h2>{{ 'user.show.title'|trans({'%name%' : viewed_user.name}, 'users') }}</h2>
28
   
28
   
29
+  <div class="reputation">
30
+    {{ 'user.reputation.name'|trans({}, 'users') }}: 
31
+    <span class="score">{{ viewed_user.reputation }}</span>
32
+    {{ 'user.reputation.txt'|trans({}, 'users') }}
33
+  </div>
34
+  
29
   <p class="show_info">
35
   <p class="show_info">
30
     {% if count_owned != 0 %}
36
     {% if count_owned != 0 %}
31
     {{ 'show.user.elements.count'|trans({
37
     {{ 'show.user.elements.count'|trans({

+ 12 - 0
web/bundles/muzichcore/css/main.css View File

1085
 {
1085
 {
1086
   font-size: 20px;
1086
   font-size: 20px;
1087
   font-weight: bold;
1087
   font-weight: bold;
1088
+}
1089
+
1090
+div.reputation
1091
+{
1092
+  padding-left: 15px;
1093
+  font-size: 110%;
1094
+}
1095
+
1096
+div.reputation span.score
1097
+{
1098
+  font-size: 125%;
1099
+  font-weight: bold;
1088
 }
1100
 }