Files
openfoodnetwork/app/views/spree/admin/overview/_enterprises_header.html.haml
David Cook 3319f38e6c Rename class to signal intent
Because the HTML is changed, I had to also update the old stylesheet too.
2023-12-23 15:46:15 +01:00

11 lines
491 B
Plaintext

%div.header.sixteen.columns.alpha{ :class => "#{@enterprises.count > 0 ? "" : "warning"}"}
%h3.thirteen.columns.alpha
= t "spree_admin_overview_enterprises_header"
- if @enterprises.any?
- if spree_current_user.can_own_more_enterprises?
%a.three.columns.omega.icon-plus.button.white-bottom{ href: "#{main_app.new_admin_enterprise_path}" }
= t "spree_admin_enterprises_create_new"
- else
%a{ "ofn-with-tip" => t('.ofn_with_tip') }
= t "admin.whats_this"