From afc7ff5a9fa987e9cdf2c622f212cc2141e8da54 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 30 May 2020 20:50:39 -0300 Subject: [PATCH] no usar cache en los botones del sitio (aun) --- app/views/posts/index.haml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 6ff7ff5..8b5e3ac 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -7,16 +7,15 @@ %main.row %aside.menu.col-md-3 - - cache @site do - %h1 - = link_to @site.title, @site.url - %p.lead= @site.description + %h1 + = link_to @site.title, @site.url + %p.lead= @site.description - %h3= t('posts.new') - %ul - - @site.layouts.to_h.keys.each do |layout| - %li= link_to @site.i18n.dig('layouts', layout.to_s) || layout.to_s.humanize, - new_site_post_path(@site, layout: layout) + %h3= t('posts.new') + %ul + - @site.layouts.to_h.keys.each do |layout| + %li= link_to @site.i18n.dig('layouts', layout.to_s) || layout.to_s.humanize, + new_site_post_path(@site, layout: layout) - if policy(@site).edit? = link_to t('sites.edit.btn', site: @site.title),