allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [11/13] git commit: [#6195] Changed tool list page to used defined capitalization instead of .title()
Date Tue, 14 May 2013 18:03:40 GMT
[#6195] Changed tool list page to used defined capitalization instead of .title()

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

Branch: refs/heads/cj/5571
Commit: bf43535c86470c8640d1be0615e9d6d0511adc5a
Parents: 7676361
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon May 6 18:47:44 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue May 14 14:55:58 2013 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/project.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/bf43535c/Allura/allura/controllers/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index d47caf4..cc80ad3 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -298,7 +298,7 @@ class ToolListController(object):
         tool_name = tool_name.lower()
         entries = [e for e in c.project.sitemap()
                 if e.tool_name and e.tool_name.lower() == tool_name]
-        return dict(entries=entries, type=entries[0].tool_name.capitalize() if entries else
None)
+        return dict(entries=entries, type=g.entry_points['tool'][tool_name].tool_label if
entries else None)
 
 class ProjectController(FeedController):
 


Mime
View raw message