You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/05/30 18:41:53 UTC

[08/24] git commit: [#5913] Project header should show admins, not members

[#5913] Project header should show admins, not members

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/94029b50
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/94029b50
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/94029b50

Branch: refs/heads/cj/6218
Commit: 94029b503ab41d9b3b1f356b44c0d01750e81b1a
Parents: 2ff2b78
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Tue May 21 19:36:57 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed May 29 18:40:17 2013 +0000

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/nav_menu.html |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/94029b50/Allura/allura/templates/jinja_master/nav_menu.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/nav_menu.html b/Allura/allura/templates/jinja_master/nav_menu.html
index 1b6a8f9..67c44ab 100644
--- a/Allura/allura/templates/jinja_master/nav_menu.html
+++ b/Allura/allura/templates/jinja_master/nav_menu.html
@@ -52,12 +52,12 @@
     </a>
     <div class="brought-by{% if c.project.icon %} with-icon{% endif %}">
         Brought to you by:
-        {% set users = c.project.users()|sort(attribute='display_name') %}
-        {% for user in users[:4] %}
-            <a href="{{ user.url() }}">{{ user.username }}</a>{{ ',' if not loop.last }}
+        {% set admins = c.project.admins()|sort(attribute='username') %}
+        {% for admin in admins[:4] %}
+            <a href="{{ admin.url() }}">{{ admin.username }}</a>{{ ',' if not loop.last }}
         {%- endfor -%}
-        {% if users|length > 4 -%}
-            , and <a href="{{ c.project.url() }}_members/">{{ users|length - 4 }} others</a>
+        {% if admins|length > 4 -%}
+            , and <a href="{{ c.project.url() }}_members/">{{ admins|length - 4 }} others</a>
         {% endif %}
     </div>
 {% endif %}