mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 03:51:41 +00:00
poder gestionar usuaries desde el sitio mismo
This commit is contained in:
parent
ac58a56882
commit
e28a14e8b0
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue