Commit aac36b12 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix app title when browse blob

parent e6b97d09
...@@ -189,6 +189,8 @@ module ProjectsHelper ...@@ -189,6 +189,8 @@ module ProjectsHelper
elsif current_controller?(:blob) elsif current_controller?(:blob)
if current_action?(:new) || current_action?(:create) if current_action?(:new) || current_action?(:create)
"New file at #{@ref}" "New file at #{@ref}"
elsif current_action?(:show)
"#{@blob.path} at #{@ref}"
elsif @blob elsif @blob
"Edit file #{@blob.path} at #{@ref}" "Edit file #{@blob.path} at #{@ref}"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment