incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#6195] Changed tool list page to used defined capitalization instead of .title()
Date Tue, 07 May 2013 22:23:29 GMT
Updated Branches:
  refs/heads/cj/6195 [created] 48eefcedc


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

Branch: refs/heads/cj/6195
Commit: 48eefcedcbe4aee93472b7afe826cc93b971ed26
Parents: 87a89b2
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon May 6 18:47:44 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue May 7 22:22:54 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/48eefced/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