no usar cache en los botones del sitio (aun)
This commit is contained in:
parent
477b417567
commit
afc7ff5a9f
1 changed files with 8 additions and 9 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue