incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefanoi...@apache.org
Subject [1/2] git commit: [5453] correct links in userstats
Date Fri, 01 Feb 2013 20:26:48 GMT
[5453] correct links in userstats


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3ad2242e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3ad2242e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3ad2242e

Branch: refs/heads/si/5453
Commit: 3ad2242e11ef8d891686a3805f54879c9cc7b54f
Parents: 63efe58
Author: Stefano Invernizzi <stefanoinve@apache.org>
Authored: Thu Jan 31 15:57:12 2013 +0100
Committer: Stefano Invernizzi <stefanoinve@apache.org>
Committed: Thu Jan 31 15:57:12 2013 +0100

----------------------------------------------------------------------
 ForgeUserStats/forgeuserstats/templates/index.html |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3ad2242e/ForgeUserStats/forgeuserstats/templates/index.html
----------------------------------------------------------------------
diff --git a/ForgeUserStats/forgeuserstats/templates/index.html b/ForgeUserStats/forgeuserstats/templates/index.html
index abcb5de..37cd5da 100644
--- a/ForgeUserStats/forgeuserstats/templates/index.html
+++ b/ForgeUserStats/forgeuserstats/templates/index.html
@@ -13,6 +13,11 @@
 {% block content %}
   {% if user %}
 
+    {% if category %}
+       <ul>
+         <li><a href="/userstats/{{user.username}}">Go back to general statistics</a></li>
+       </ul>
+    {% endif %}
     <h2>General statistics</h2>
     <table>
       <thead>
@@ -352,7 +357,7 @@
           <tbody>
             {% for cat, count in categories %}
               <tr>
-                <td><a href="/userstats/{{user.username}}/category/{{cat.fullname}}">{{cat.fullname}}</a></td>
+                <td><a href="/userstats/{{user.username}}/category/{{cat.shortname}}">{{cat.fullname}}</a></td>
                 <td>{{count}}</td>
               </tr>
             {% endfor %}
@@ -368,9 +373,7 @@
           </p>
         {% endif %}
     {% endif %}
-    {% if category %}
-        <div class="grid-20"><a href="/userstats/{{user.username}}">Go back to
general statistics</a></div>
-    {% else %}
+    {% if not category %}
       <h2>Overview</h2>
       <table>
         <thead>


Mime
View raw message