Files
openfoodnetwork/app/views/spree/admin/overview/multi_enterprise_dashboard.html.haml
David Cook 35d9837f24 Show current version at bottom of admin dashboard
With generic link to the releases page. We could provide a link to latest tag with `git describe --tags --abbrev=0`. But I thought it better to keep things simple.
2023-06-16 09:11:59 +10:00

27 lines
496 B
Plaintext

- content_for :page_actions do
= render 'admin/shared/user_guide_link'
%div{ 'ng-app' => 'ofn.admin' }
%h1{ :style => 'margin-bottom: 30px' }
= t 'dashboard'
- if @enterprises.empty?
= render partial: "enterprises"
- else
- if can? :admin, Spree::Product
= render partial: "products"
%div.two.columns
 
- if can? :admin, OrderCycle
= render partial: "order_cycles"
= render partial: "enterprises"
= render partial: "version"