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:
David Cook
2024-09-02 10:52:41 +10:00
committed by Filipe
parent 8c71760556
commit c362e8dd0d

View File

@@ -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)}"