mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
update profile link based on enterprise profile
This commit is contained in:
@@ -40,11 +40,18 @@
|
||||
%span.icon-user
|
||||
= t "your_profil_live"
|
||||
.list
|
||||
%a.button.bottom{href: main_app.enterprise_shop_url(@enterprise), target: '_blank'}
|
||||
= t "see"
|
||||
= @enterprise.name
|
||||
= t "live"
|
||||
%span.icon-arrow-right
|
||||
- if @enterprise.sells == "none"
|
||||
%a.button.bottom{href: main_app.producers_url, target: '_blank'}
|
||||
= t "see"
|
||||
= @enterprise.name
|
||||
= t "live"
|
||||
%span.icon-arrow-right
|
||||
- else
|
||||
%a.button.bottom{href: main_app.enterprise_shop_url(@enterprise), target: '_blank'}
|
||||
= t "see"
|
||||
= @enterprise.name
|
||||
= t "live"
|
||||
%span.icon-arrow-right
|
||||
|
||||
.eight.columns.omega.dashboard_item.single-ent#edit
|
||||
.header
|
||||
|
||||
Reference in New Issue
Block a user