Skip to content

Commit

Permalink
Merge pull request #1795 from jhawthorn/improve_admin_titles
Browse files Browse the repository at this point in the history
Improve page titles in admin
  • Loading branch information
jhawthorn authored Mar 29, 2017
2 parents e12ea8b + be4a469 commit 8ef6b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/helpers/spree/admin/navigation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def admin_page_title
elsif content_for?(:page_title)
content_for(:page_title)
elsif admin_breadcrumbs.any?
strip_tags(admin_breadcrumbs.last)
admin_breadcrumbs.map{ |x| strip_tags(x) }.reverse.join(' - ')
else
Spree.t(controller.controller_name, default: controller.controller_name.titleize)
end
Expand Down

0 comments on commit 8ef6b71

Please sign in to comment.