From cc342387cc86cc05a5034be8a24a63cddb5614b8 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 23 Oct 2019 12:42:29 +0100 Subject: [PATCH] Make all calls to content_for use dash not equals when setting content_for --- app/views/admin/enterprise_groups/index.html.haml | 2 +- app/views/admin/order_cycles/index.html.haml | 2 +- app/views/admin/shared/_enterprises_sub_menu.html.haml | 2 +- app/views/admin/shared/_users_sub_menu.html.haml | 2 +- app/views/spree/admin/shared/_product_sub_menu.html.haml | 2 +- app/views/spree/admin/shared/_product_tabs.html.haml | 6 +++--- app/views/spree/admin/users/new.html.haml | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/views/admin/enterprise_groups/index.html.haml b/app/views/admin/enterprise_groups/index.html.haml index 93d7ee81ba..6b63676910 100644 --- a/app/views/admin/enterprise_groups/index.html.haml +++ b/app/views/admin/enterprise_groups/index.html.haml @@ -1,4 +1,4 @@ -= content_for :page_title do +- content_for :page_title do = t 'admin_enterprise_groups' - if admin_user? diff --git a/app/views/admin/order_cycles/index.html.haml b/app/views/admin/order_cycles/index.html.haml index 266d4c36d9..6d3730febf 100644 --- a/app/views/admin/order_cycles/index.html.haml +++ b/app/views/admin/order_cycles/index.html.haml @@ -1,4 +1,4 @@ -= content_for :page_title do +- content_for :page_title do = t :admin_order_cycles - content_for :main_ng_app_name do diff --git a/app/views/admin/shared/_enterprises_sub_menu.html.haml b/app/views/admin/shared/_enterprises_sub_menu.html.haml index 3088b7e73e..33db103b3c 100644 --- a/app/views/admin/shared/_enterprises_sub_menu.html.haml +++ b/app/views/admin/shared/_enterprises_sub_menu.html.haml @@ -1,4 +1,4 @@ -= content_for :sub_menu do +- content_for :sub_menu do %ul#sub_nav.inline-menu{"data-hook" => "admin_enterprise_sub_tabs"} = tab :enterprises, url: main_app.admin_enterprises_path = tab :enterprise_relationships, url: main_app.admin_enterprise_relationships_path diff --git a/app/views/admin/shared/_users_sub_menu.html.haml b/app/views/admin/shared/_users_sub_menu.html.haml index a5911277a6..a1bc352783 100644 --- a/app/views/admin/shared/_users_sub_menu.html.haml +++ b/app/views/admin/shared/_users_sub_menu.html.haml @@ -1,4 +1,4 @@ -= content_for :sub_menu do +- content_for :sub_menu do %ul#sub_nav.inline-menu{"data-hook" => "admin_user_sub_tabs"} = tab :users, url: spree.admin_users_path = tab :roles, url: main_app.admin_enterprise_roles_path, match_path: '/enterprise_roles' diff --git a/app/views/spree/admin/shared/_product_sub_menu.html.haml b/app/views/spree/admin/shared/_product_sub_menu.html.haml index 39a81923eb..15f688fddf 100644 --- a/app/views/spree/admin/shared/_product_sub_menu.html.haml +++ b/app/views/spree/admin/shared/_product_sub_menu.html.haml @@ -1,4 +1,4 @@ -= content_for :sub_menu do +- content_for :sub_menu do %ul#sub_nav.inline-menu = tab :products, match_path: '/products' = tab :option_types, match_path: '/option_types' diff --git a/app/views/spree/admin/shared/_product_tabs.html.haml b/app/views/spree/admin/shared/_product_tabs.html.haml index 409e645109..eefd44dea8 100644 --- a/app/views/spree/admin/shared/_product_tabs.html.haml +++ b/app/views/spree/admin/shared/_product_tabs.html.haml @@ -1,12 +1,12 @@ -= content_for :page_title do +- content_for :page_title do = Spree.t(:editing_product) = "\"#{@product.name}\"" -= content_for :sidebar_title do +- content_for :sidebar_title do %span.sku = @product.sku -= content_for :sidebar do +- content_for :sidebar do %nav.menu %ul - if can?(:admin, Spree::Product) diff --git a/app/views/spree/admin/users/new.html.haml b/app/views/spree/admin/users/new.html.haml index 9fb68e689f..0bb78a2d4b 100644 --- a/app/views/spree/admin/users/new.html.haml +++ b/app/views/spree/admin/users/new.html.haml @@ -1,7 +1,7 @@ -= content_for :page_title do +- content_for :page_title do = Spree.t(:new_user) -= content_for :page_actions do +- content_for :page_actions do %li = button_link_to Spree.t(:back_to_users_list), spree.admin_users_path, icon: 'icon-arrow-left'