no usar cache en los botones del sitio (aun)

This commit is contained in:
f 2020-05-30 20:50:39 -03:00
parent 477b417567
commit afc7ff5a9f

View file

@ -7,16 +7,15 @@
%main.row %main.row
%aside.menu.col-md-3 %aside.menu.col-md-3
- cache @site do %h1
%h1 = link_to @site.title, @site.url
= link_to @site.title, @site.url %p.lead= @site.description
%p.lead= @site.description
%h3= t('posts.new') %h3= t('posts.new')
%ul %ul
- @site.layouts.to_h.keys.each do |layout| - @site.layouts.to_h.keys.each do |layout|
%li= link_to @site.i18n.dig('layouts', layout.to_s) || layout.to_s.humanize, %li= link_to @site.i18n.dig('layouts', layout.to_s) || layout.to_s.humanize,
new_site_post_path(@site, layout: layout) new_site_post_path(@site, layout: layout)
- if policy(@site).edit? - if policy(@site).edit?
= link_to t('sites.edit.btn', site: @site.title), = link_to t('sites.edit.btn', site: @site.title),