mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-04 02:31:33 +00:00
Adding link to user guide to enterprises index and dashboard
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
Enterprises
|
||||
|
||||
- content_for :page_actions do
|
||||
= render 'admin/shared/user_guide_link'
|
||||
|
||||
- if spree_current_user.can_own_more_enterprises?
|
||||
%li#new_product_link
|
||||
= button_link_to "New Enterprise", main_app.new_admin_enterprise_path, :icon => 'icon-plus', :id => 'admin_new_enterprise_link'
|
||||
|
||||
1
app/views/admin/shared/_user_guide_link.html.haml
Normal file
1
app/views/admin/shared/_user_guide_link.html.haml
Normal file
@@ -0,0 +1 @@
|
||||
= button_link_to "User Guide", "http://global.openfoodnetwork.org/platform/user-guide/", :icon => 'icon-external-link', :id => 'user_guide_link', target: '_blank'
|
||||
@@ -1,3 +1,7 @@
|
||||
- content_for :page_actions do
|
||||
= render 'admin/shared/user_guide_link'
|
||||
|
||||
|
||||
%h1{ :style => 'margin-bottom: 30px'} Dashboard
|
||||
|
||||
- if @enterprises.unconfirmed.any?
|
||||
@@ -21,4 +25,4 @@
|
||||
- if can? :admin, OrderCycle
|
||||
= render partial: "order_cycles"
|
||||
|
||||
= render partial: "enterprises"
|
||||
= render partial: "enterprises"
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
= "(#{enterprise_type_name(@enterprise)})"
|
||||
|
||||
- content_for :page_actions do
|
||||
= render 'admin/shared/user_guide_link'
|
||||
|
||||
:javascript
|
||||
function toggleType(){
|
||||
if( $('#package_selection').is(":visible") ){
|
||||
|
||||
Reference in New Issue
Block a user