update profile link based on enterprise profile

This commit is contained in:
Sinan Chaush
2021-09-08 21:10:12 +02:00
parent de29d7e7d7
commit f883e66c96

View File

@@ -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