crear articulos según layout

This commit is contained in:
f 2019-11-14 14:46:59 -03:00
parent 1b244bf273
commit 075c47f0c7
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
3 changed files with 8 additions and 7 deletions

View file

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

View file

@ -355,8 +355,7 @@ en:
date: 'date'
order: 'Order'
content: 'Text'
new: 'New post'
new_with_template: 'New %{template}'
new: 'New post as'
dropdown: 'Toggle dropdown'
categories: 'Everything'
index: 'Posts'

View file

@ -367,8 +367,7 @@ es:
content: 'Cuerpo del artículo'
categories: 'Todos'
dropdown: 'Desplegar el menú'
new: 'Crear artículo'
new_with_template: 'Comenzar %{template}'
new: 'Crear artículo en:'
index: 'Artículos'
edit: 'Editar'
open: 'Nota: Puedes agregar más opciones a medida que las escribes y presionas Entrar'