poder gestionar usuaries desde el sitio mismo

This commit is contained in:
f 2020-11-26 15:47:41 -03:00
parent ac58a56882
commit e28a14e8b0

View file

@ -22,6 +22,13 @@
- if policy(@site).private?
= link_to t('sites.private'), '../private/' + @site.name, class: 'btn', target: '_blank', rel: 'noopener'
- if policy(SiteUsuarie.new(@site, current_usuarie)).index?
= render 'layouts/btn_with_tooltip',
tooltip: t('usuaries.index.help.self'),
text: t('usuaries.index.title'),
type: 'info',
link: site_usuaries_path(@site)
= render 'sites/build', site: @site
- if @site.design.credits