mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 17:11:41 +00:00
filtrar por tipo de artículo
This commit is contained in:
parent
9225ae7ce8
commit
5900e63b07
4 changed files with 16 additions and 10 deletions
|
@ -13,6 +13,7 @@ $colors: (
|
|||
|
||||
// Redefinir variables de Bootstrap
|
||||
$primary: $magenta;
|
||||
$secondary: $black;
|
||||
$jumbotron-bg: transparent;
|
||||
$enable-rounded: false;
|
||||
$form-feedback-valid-color: $cyan;
|
||||
|
|
|
@ -11,10 +11,17 @@
|
|||
%p.lead= @site.description
|
||||
|
||||
%h3= t('posts.new')
|
||||
%ul
|
||||
%table.mb-3
|
||||
- @site.layouts.each do |layout|
|
||||
- next if layout.hidden?
|
||||
%li= link_to layout.humanized_name, new_site_post_path(@site, layout: layout.name)
|
||||
%tr
|
||||
%th= layout.humanized_name
|
||||
%td.pl-3= link_to t('posts.add'),
|
||||
new_site_post_path(@site, layout: layout.name),
|
||||
class: 'badge badge-secondary'
|
||||
%td= link_to t('posts.filter'),
|
||||
site_posts_path(@site, layout: layout.value),
|
||||
class: 'badge badge-secondary'
|
||||
|
||||
- if policy(@site).edit?
|
||||
= link_to t('sites.edit.btn', site: @site.title), edit_site_path(@site), class: 'btn'
|
||||
|
@ -88,10 +95,6 @@
|
|||
value: @posts.length - i,
|
||||
data: { reorder: true }
|
||||
%td.w-100{ class: dir }
|
||||
%small
|
||||
= link_to @site.i18n.dig('layouts', post.layout.name.to_s) || post.layout.name.to_s.humanize,
|
||||
site_posts_path(@site, layout: post.layout.name)
|
||||
%br/
|
||||
= link_to site_post_path(@site, post.id) do
|
||||
%span{ lang: post.lang.value, dir: dir }= post.title.value
|
||||
- if post.attributes.include? :draft
|
||||
|
|
|
@ -487,8 +487,9 @@ en:
|
|||
date: 'date'
|
||||
order: 'Order'
|
||||
content: 'Text'
|
||||
new: 'Add:'
|
||||
dropdown: 'Toggle dropdown'
|
||||
new: 'Post types'
|
||||
add: 'Add'
|
||||
filter: 'Filter'
|
||||
categories: 'Everything'
|
||||
index: 'Posts'
|
||||
edit: 'Edit'
|
||||
|
|
|
@ -501,8 +501,9 @@ es:
|
|||
order: 'Posición'
|
||||
content: 'Cuerpo del artículo'
|
||||
categories: 'Todos'
|
||||
dropdown: 'Desplegar el menú'
|
||||
new: 'Agregar:'
|
||||
new: 'Tipos de artículos'
|
||||
add: 'Agregar'
|
||||
filter: 'Filtrar'
|
||||
index: 'Artículos'
|
||||
edit: 'Editar'
|
||||
preview:
|
||||
|
|
Loading…
Reference in a new issue