You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/03/21 15:22:00 UTC
[24/48] git commit: [5453] correct links in userstats
[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/453f979d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/453f979d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/453f979d
Branch: refs/heads/si/5453
Commit: 453f979ddbb37b6c377cb2529daded5bfc6e2bd3
Parents: 28d50bb
Author: Stefano Invernizzi <st...@apache.org>
Authored: Thu Jan 31 15:57:12 2013 +0100
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Thu Mar 21 14:16:18 2013 +0000
----------------------------------------------------------------------
ForgeUserStats/forgeuserstats/templates/index.html | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/453f979d/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>