From e28a14e8b0f7d7ccd7b9df805e4d461ce20b193b Mon Sep 17 00:00:00 2001 From: f Date: Thu, 26 Nov 2020 15:47:41 -0300 Subject: [PATCH] poder gestionar usuaries desde el sitio mismo --- app/views/posts/index.haml | 7 +++++++ 1 file changed, 7 insertions(+) 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