diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 26945b58..9ee71ed8 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -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