Fix app title when browse blob

This commit is contained in:
Dmitriy Zaporozhets 2015-01-26 19:28:11 -08:00
parent e6b97d0947
commit aac36b120e

View file

@ -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