From 075c47f0c7b5afeec6e4ed6ad240735e3579e6c3 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 14 Nov 2019 14:46:59 -0300 Subject: [PATCH] =?UTF-8?q?crear=20articulos=20seg=C3=BAn=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/index.haml | 9 ++++++--- config/locales/en.yml | 3 +-- config/locales/es.yml | 3 +-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 12730e82..4c903485 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -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), diff --git a/config/locales/en.yml b/config/locales/en.yml index ff7278e9..84215d03 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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' diff --git a/config/locales/es.yml b/config/locales/es.yml index 7d2b1dfd..2c71813e 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -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'