Browse Source

Added help text to graphs in user profiles.

Ralfp 12 years ago
parent
commit
16ad3461a7

+ 2 - 1
static/cranefly/css/cranefly.css

@@ -1081,7 +1081,8 @@ a.btn-link:hover,a.btn-link:active,a.btn-link:focus{opacity:0.9;filter:alpha(opa
 .user-profile .user-profile-header .header-side{margin-left:94px;}.user-profile .user-profile-header .header-side h1{margin-left:6.666666666666667px;}
 .user-profile .user-profile-header .header-side{margin-left:94px;}.user-profile .user-profile-header .header-side h1{margin-left:6.666666666666667px;}
 .user-profile hr{border:none;border-top:1px solid #eeeeee;margin:14px 0px;}
 .user-profile hr{border:none;border-top:1px solid #eeeeee;margin:14px 0px;}
 .user-profile .stat-header{border-bottom:1px solid #e2e2e2;margin-bottom:14px;}.user-profile .stat-header .user-graph{height:40px;}.user-profile .stat-header .user-graph svg{position:relative;left:1px;height:100%;width:100%;}
 .user-profile .stat-header{border-bottom:1px solid #e2e2e2;margin-bottom:14px;}.user-profile .stat-header .user-graph{height:40px;}.user-profile .stat-header .user-graph svg{position:relative;left:1px;height:100%;width:100%;}
-.user-profile .stat-header h2{margin-top:-54px;}
+.user-profile .stat-header .help-text{float:right;margin-bottom:-20px;position:relative;top:47.9px;color:#999999;font-size:11.9px;}
+.user-profile .stat-header h2{margin-top:-54px;text-shadow:0px 0px 3px #fbfbfb;}
 .user-profile .user-details .label{font-size:14px;}
 .user-profile .user-details .label{font-size:14px;}
 .user-profile .user-list .user-cell{overflow:auto;}.user-profile .user-list .user-cell .user-avatar{float:left;}.user-profile .user-list .user-cell .user-avatar img{border-radius:3px;width:36px;height:36px;}
 .user-profile .user-list .user-cell{overflow:auto;}.user-profile .user-list .user-cell .user-avatar{float:left;}.user-profile .user-list .user-cell .user-avatar img{border-radius:3px;width:36px;height:36px;}
 .user-profile .user-list .user-cell .user-name:link,.user-profile .user-list .user-cell .user-name:active,.user-profile .user-list .user-cell .user-name:visited,.user-profile .user-list .user-cell .user-name:hover{display:block;margin:0px;margin-left:43px;margin-top:9.1px;color:#333333;font-size:23.8px;}
 .user-profile .user-list .user-cell .user-name:link,.user-profile .user-list .user-cell .user-name:active,.user-profile .user-list .user-cell .user-name:visited,.user-profile .user-list .user-cell .user-name:hover{display:block;margin:0px;margin-left:43px;margin-top:9.1px;color:#333333;font-size:23.8px;}

+ 12 - 0
static/cranefly/css/cranefly/profiles.less

@@ -69,8 +69,20 @@
       }
       }
     }
     }
 
 
+    .help-text {
+      float: right;
+      margin-bottom: @baseLineHeight * -1;
+      position: relative;
+      top: 40px + @fontSizeSmall - 4px;
+
+      color: @grayLight;
+      font-size: @fontSizeSmall;
+    }
+
     h2 {
     h2 {
       margin-top: (40px + @baseFontSize) * -1;
       margin-top: (40px + @baseFontSize) * -1;
+
+      text-shadow: 0px 0px 3px @bodyBackground;
     }
     }
   }
   }
 
 

+ 3 - 0
templates/cranefly/profiles/posts.html

@@ -6,6 +6,9 @@
 
 
 {% block tab %}
 {% block tab %}
 <div class="stat-header">
 <div class="stat-header">
+  <div class="help-text">
+    {% trans user=profile.username %}Graph presents {{ user }}'s posting activity from last 100 days.{% endtrans %}
+  </div>
   <div id="user-graph"></div>
   <div id="user-graph"></div>
   <h2>{% if items_total -%}
   <h2>{% if items_total -%}
       {%- trans count=items_total, total=items_total|intcomma, username=profile.username -%}
       {%- trans count=items_total, total=items_total|intcomma, username=profile.username -%}

+ 3 - 0
templates/cranefly/profiles/threads.html

@@ -6,6 +6,9 @@
 
 
 {% block tab %}
 {% block tab %}
 <div class="stat-header">
 <div class="stat-header">
+  <div class="help-text">
+    {% trans user=profile.username %}Graph presents threads started by {{ user }}'s during last 100 days.{% endtrans %}
+  </div>
   <div id="user-graph"></div>
   <div id="user-graph"></div>
   <h2>{% if items_total -%}
   <h2>{% if items_total -%}
       {%- trans count=items_total, total=items_total|intcomma, username=profile.username -%}
       {%- trans count=items_total, total=items_total|intcomma, username=profile.username -%}