diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-27 06:28:11 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-27 06:28:11 +0300 |
commit | aac36b120ef86469feb05ae5db39205493f851ed (patch) | |
tree | 145b8cf3581d700610a6fd2430f18233df48fa8d /app | |
parent | e6b97d09470b01b5b65e87dab339c500f1bac45f (diff) |
Fix app title when browse blob
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/projects_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 9d2c99356af..db4bb303d0f 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -189,6 +189,8 @@ module ProjectsHelper elsif current_controller?(:blob) if current_action?(:new) || current_action?(:create) "New file at #{@ref}" + elsif current_action?(:show) + "#{@blob.path} at #{@ref}" elsif @blob "Edit file #{@blob.path} at #{@ref}" end |