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

[32/50] [abbrv] git commit: [#6195] Changed tool list page to used defined capitalization instead of .title()

[#6195] Changed tool list page to used defined capitalization instead of .title()

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/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/db/6208
Commit: bf43535c86470c8640d1be0615e9d6d0511adc5a
Parents: 7676361
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Mon May 6 18:47:44 2013 +0000
Committer: Dave Brondsema <db...@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):