mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 03:41:42 +00:00
mostrar las estadisticas en el menú
This commit is contained in:
parent
655c6b65d5
commit
e6c03df13f
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@
|
||||||
- if policy(@site).private?
|
- if policy(@site).private?
|
||||||
= link_to t('sites.private'), '../private/' + @site.name, class: 'btn', target: '_blank', rel: 'noopener'
|
= link_to t('sites.private'), '../private/' + @site.name, class: 'btn', target: '_blank', rel: 'noopener'
|
||||||
|
|
||||||
|
- if policy(SiteStat.new(@site)).index?
|
||||||
|
= link_to t('stats.index.title'), site_stats_path(@site), class: 'btn'
|
||||||
|
|
||||||
- if policy(SiteUsuarie.new(@site, current_usuarie)).index?
|
- if policy(SiteUsuarie.new(@site, current_usuarie)).index?
|
||||||
= render 'layouts/btn_with_tooltip',
|
= render 'layouts/btn_with_tooltip',
|
||||||
tooltip: t('usuaries.index.help.self'),
|
tooltip: t('usuaries.index.help.self'),
|
||||||
|
|
Loading…
Reference in a new issue