ソースを参照

Evolution #150: Reputation

bastien 13 年 前
コミット
ced19aaf71
共有3 個のファイルを変更した22 個の追加1 個の削除を含む
  1. 4 1
      app/Resources/translations/users.fr.yml
  2. 6 0
      src/Muzich/HomeBundle/Resources/views/Show/showUser.html.twig
  3. 12 0
      web/bundles/muzichcore/css/main.css

+ 4 - 1
app/Resources/translations/users.fr.yml ファイルの表示

@@ -7,4 +7,7 @@ user:
7 7
   view_profile:                 Voir le profil
8 8
   stop_follow:                  Ne plus suivre
9 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 ファイルの表示

@@ -26,6 +26,12 @@
26 26
 
27 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 35
   <p class="show_info">
30 36
     {% if count_owned != 0 %}
31 37
     {{ 'show.user.elements.count'|trans({

+ 12 - 0
web/bundles/muzichcore/css/main.css ファイルの表示

@@ -1085,4 +1085,16 @@ li.element td.right span.score
1085 1085
 {
1086 1086
   font-size: 20px;
1087 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
 }