diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-26 15:03:14 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-26 15:03:14 -0800 |
commit | 21297e78afd5ddfbfdf62f471acf1ab2f0c2a892 (patch) | |
tree | bc5b9f8eea2d427e4cd918309cc2db8dd8820272 /app/helpers/projects_helper.rb | |
parent | e07da5989f5ae14dddc130b80210342ca776e6d2 (diff) | |
download | gitlab-ce-21297e78afd5ddfbfdf62f471acf1ab2f0c2a892.tar.gz |
Refactor blob helpers
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r-- | app/helpers/projects_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index de232ab4e25..9d2c99356af 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -187,7 +187,11 @@ module ProjectsHelper "Issues - " + title end elsif current_controller?(:blob) - "#{@project.path}\/#{@blob.path} at #{@ref} - " + title + if current_action?(:new) || current_action?(:create) + "New file at #{@ref}" + elsif @blob + "Edit file #{@blob.path} at #{@ref}" + end elsif current_controller?(:commits) "Commits at #{@ref} - " + title elsif current_controller?(:merge_requests) |