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/08 00:23:29 UTC
git commit: [#6195] Changed tool list page to used defined
capitalization instead of .title()
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 <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/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 <cj...@slashdotmedia.com>
Authored: Mon May 6 18:47:44 2013 +0000
Committer: Cory Johns <cj...@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):