5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 08:44:17 +00:00

mostrar las estadisticas en el menú

This commit is contained in:
f 2022-07-01 15:01:57 -03:00
parent 655c6b65d5
commit e6c03df13f

View file

@ -21,6 +21,9 @@
- if policy(@site).private?
= 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?
= render 'layouts/btn_with_tooltip',
tooltip: t('usuaries.index.help.self'),