diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-12 14:02:29 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-12 14:02:29 +0400 |
commit | d7eb3145539222df4653fbe300d179a81b303517 (patch) | |
tree | 26e8cfb99d16d63c055a4b5d35a3182bb400da14 /app/helpers | |
parent | 743073ce5fc4316d2867f30996f0dcfbc0183474 (diff) |
Project titles with namespaces
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 4690a452e25..2fa9d21d125 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -23,4 +23,12 @@ module ProjectsHelper def tm_path team_member project_team_member_path(@project, team_member) end + + def project_title project + if project.group + project.name_with_namespace + else + project.name + end + end end |