incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/3] git commit: [#7097] Better display of User Profile Tools section items
Date Thu, 13 Feb 2014 23:19:47 GMT
[#7097] Better display of User Profile Tools section items

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/7097
Commit: f1db0542485f5eccd94b023030160cbec1a23312
Parents: 55ff78b
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Thu Feb 13 21:43:08 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Thu Feb 13 21:43:08 2014 +0000

----------------------------------------------------------------------
 .../ext/user_profile/templates/sections/tools.html   | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f1db0542/Allura/allura/ext/user_profile/templates/sections/tools.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/user_profile/templates/sections/tools.html b/Allura/allura/ext/user_profile/templates/sections/tools.html
index 4427c8b..edcdbb9 100644
--- a/Allura/allura/ext/user_profile/templates/sections/tools.html
+++ b/Allura/allura/ext/user_profile/templates/sections/tools.html
@@ -32,8 +32,17 @@
 
 {% block content %}
     <ul>
-        {% for tool in c.project.ordered_mounts() %}
-        <li><a href="{{tool['ac'].url()}}">{{ tool['ac'].options.mount_label
}}</a></li>
-        {% endfor %}
+    {% for tool in c.project.grouped_navbar_entries() %}
+        <li>
+            <a href="{{tool.url}}">{{ tool.label }}</a>
+            {% if tool.children %}
+            <ul>
+            {% for child in tool.children %}
+                <li><a href="{{child.url}}">{{ child.label }}</a></li>
+            {% endfor %}
+            </ul>
+            {% endif %}
+        </li>
+    {% endfor %}
     </ul>
 {% endblock %}


Mime
View raw message