Merge pull request #12833 from dacook/page-titles

[admin] Update page titles
This commit is contained in:
Filipe
2024-09-27 16:59:43 -06:00
committed by GitHub
3 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
- content_for :main_ng_app_name do
= "admin.lineItems"
- content_for :html_title do
= t("admin.orders.bulk_management.page_title")
- content_for :page_title do
%h1.page-title
= t("admin.orders.bulk_management.page_title")

View File

@@ -1,5 +1,8 @@
= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Payments' }
- content_for :html_title do
= Spree.t('refund', scope: :paypal)
- content_for :page_title do
%i.icon-arrow-right
= link_to Spree.t(:payments), admin_order_payments_path(@order)

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