mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Use page titles in HTML head
This is much more meaningful than the controller name, and is helpful for browser tab history.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
%title
|
||||
- if content_for? :html_title
|
||||
= yield :html_title
|
||||
- elsif content_for? :page_title
|
||||
= strip_tags(yield(:page_title))
|
||||
- else
|
||||
= t("spree.admin.tab.#{controller.controller_name}", :default => controller.controller_name.titleize)
|
||||
= " - OFN #{t(:administration)}"
|
||||
|
||||
Reference in New Issue
Block a user