diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-13 10:35:10 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-13 10:35:10 +0200 |
commit | c727fdd054cd2f73a4311265d9f5e9f1a7d434eb (patch) | |
tree | 97d3f73cd28ac5c08c5b1853302debdb7ecf350a /app/helpers/groups_helper.rb | |
parent | e51411ecc7c3dbb5b37af1f0d51b0a8118d6f8bd (diff) | |
download | gitlab-ce-c727fdd054cd2f73a4311265d9f5e9f1a7d434eb.tar.gz |
Group head titles
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r-- | app/helpers/groups_helper.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index 8573c59dc94..7c09273d53e 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -2,4 +2,23 @@ module GroupsHelper def remove_user_from_group_message(group, user) "You are going to remove #{user.name} from #{group.name} Group. Are you sure?" end + + def group_head_title + title = @group.name + + title = if current_action?(:issues) + "Issues - " + title + elsif current_action?(:merge_requests) + "Merge requests - " + title + elsif current_action?(:members) + "Members - " + title + elsif current_action?(:edit) + "Settings - " + title + else + title + end + + title + + end end |