From bcebb999677292e75dc0b54fbfbaf09d5366c9bd Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 27 Mar 2019 11:04:08 +1100 Subject: [PATCH] Fix "What's this?" on admin dashboard When a user has no enterprises, the admin dashboard displays a "What's this?" hint in the right corner of the enterprises tab. The link text and the tooltip were both broken (missing translation). --- app/views/spree/admin/overview/_enterprises_header.html.haml | 2 +- config/locales/en.yml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/spree/admin/overview/_enterprises_header.html.haml b/app/views/spree/admin/overview/_enterprises_header.html.haml index d134d6f34f..a189fe40d6 100644 --- a/app/views/spree/admin/overview/_enterprises_header.html.haml +++ b/app/views/spree/admin/overview/_enterprises_header.html.haml @@ -7,4 +7,4 @@ = t "spree_admin_enterprises_create_new" - else %a{ "ofn-with-tip" => t('.ofn_with_tip') } - = t "admin_enterprise_groups_what_s_this" + = t "admin.whats_this" diff --git a/config/locales/en.yml b/config/locales/en.yml index 045f561bd4..92f2ad9e1d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1013,9 +1013,6 @@ en: shared: user_guide_link: user_guide: User Guide - overview: - enterprises_header: - ofn_with_tip: Enterprises are Producers and/or Hubs and are the basic unit of organisation within the Open Food Network. enterprises_hubs_tabs: has_no_payment_methods: "%{enterprise} has no payment methods" has_no_shipping_methods: "%{enterprise} has no shipping methods" @@ -3001,6 +2998,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using distributor: "Distributor:" order_cycle: "Order cycle:" overview: + enterprises_header: + ofn_with_tip: Enterprises are Producers and/or Hubs and are the basic unit of organisation within the Open Food Network. products: active_products: zero: "You don't have any active products."