diff --git a/app/views/schemas/_add.haml b/app/views/schemas/_add.haml index 0131a6bb..6aaf51c9 100644 --- a/app/views/schemas/_add.haml +++ b/app/views/schemas/_add.haml @@ -1 +1 @@ -= link_to t('.add'), new_site_post_path(site, layout: schema.value), class: 'btn btn-secondary btn-sm m-0' += link_to t(schema.humanized_name), new_site_post_path(site, layout: schema.value), class: 'stretched-link black text-decoration-none' diff --git a/app/views/schemas/_row.haml b/app/views/schemas/_row.haml index 78558dc0..edea4f2f 100644 --- a/app/views/schemas/_row.haml +++ b/app/views/schemas/_row.haml @@ -1,8 +1,9 @@ %tr.border-top.border-magenta - %th.font-weight-normal.w-100{ scope: 'row' } + + %th.font-weight-normal.w-100.position-relative{ scope: 'row' } - if local_assigns[:parent_schema] %span.text-muted — - = schema.humanized_name + = render 'schemas/add', schema: schema, **local_assigns -# XXX: Solo un nivel de recursividad - unless local_assigns[:parent_schema] diff --git a/config/locales/en.yml b/config/locales/en.yml index 38cc3aa0..004b353c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -700,7 +700,7 @@ en: date: 'date' order: 'Order' content: 'Text' - new: 'Post types' + new: 'Add content' remove_filter_help: 'Remove the filter: %{filter}' categories: 'Everything' index: diff --git a/config/locales/es.yml b/config/locales/es.yml index 5e8bba9d..28f60953 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -712,7 +712,7 @@ es: order: 'Posición' content: 'Cuerpo del artículo' categories: 'Todos' - new: 'Tipos de artículos' + new: 'Agregar contenido' remove_filter_help: 'Quitar este filtro: %{filter}' index: search: 'Buscar'