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 2014/02/21 23:21:51 UTC

[03/10] git commit: [#7097] Better display of User Profile Tools section items

[#7097] Better display of User Profile Tools section items

Signed-off-by: Cory Johns <cj...@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/03081c2c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/03081c2c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/03081c2c

Branch: refs/heads/master
Commit: 03081c2c025942b9fffa1b78b8dfed48087fb624
Parents: 04a6a13
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Thu Feb 13 21:43:08 2014 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Fri Feb 21 21:14: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/03081c2c/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 %}