mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:26:22 +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
|
// Redefinir variables de Bootstrap
|
||||||
$primary: $magenta;
|
$primary: $magenta;
|
||||||
|
$secondary: $black;
|
||||||
$jumbotron-bg: transparent;
|
$jumbotron-bg: transparent;
|
||||||
$enable-rounded: false;
|
$enable-rounded: false;
|
||||||
$form-feedback-valid-color: $cyan;
|
$form-feedback-valid-color: $cyan;
|
||||||
|
|
|
@ -11,10 +11,17 @@
|
||||||
%p.lead= @site.description
|
%p.lead= @site.description
|
||||||
|
|
||||||
%h3= t('posts.new')
|
%h3= t('posts.new')
|
||||||
%ul
|
%table.mb-3
|
||||||
- @site.layouts.each do |layout|
|
- @site.layouts.each do |layout|
|
||||||
- next if layout.hidden?
|
- 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?
|
- if policy(@site).edit?
|
||||||
= link_to t('sites.edit.btn', site: @site.title), edit_site_path(@site), class: 'btn'
|
= link_to t('sites.edit.btn', site: @site.title), edit_site_path(@site), class: 'btn'
|
||||||
|
@ -88,10 +95,6 @@
|
||||||
value: @posts.length - i,
|
value: @posts.length - i,
|
||||||
data: { reorder: true }
|
data: { reorder: true }
|
||||||
%td.w-100{ class: dir }
|
%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
|
= link_to site_post_path(@site, post.id) do
|
||||||
%span{ lang: post.lang.value, dir: dir }= post.title.value
|
%span{ lang: post.lang.value, dir: dir }= post.title.value
|
||||||
- if post.attributes.include? :draft
|
- if post.attributes.include? :draft
|
||||||
|
|
|
@ -487,8 +487,9 @@ en:
|
||||||
date: 'date'
|
date: 'date'
|
||||||
order: 'Order'
|
order: 'Order'
|
||||||
content: 'Text'
|
content: 'Text'
|
||||||
new: 'Add:'
|
new: 'Post types'
|
||||||
dropdown: 'Toggle dropdown'
|
add: 'Add'
|
||||||
|
filter: 'Filter'
|
||||||
categories: 'Everything'
|
categories: 'Everything'
|
||||||
index: 'Posts'
|
index: 'Posts'
|
||||||
edit: 'Edit'
|
edit: 'Edit'
|
||||||
|
|
|
@ -501,8 +501,9 @@ es:
|
||||||
order: 'Posición'
|
order: 'Posición'
|
||||||
content: 'Cuerpo del artículo'
|
content: 'Cuerpo del artículo'
|
||||||
categories: 'Todos'
|
categories: 'Todos'
|
||||||
dropdown: 'Desplegar el menú'
|
new: 'Tipos de artículos'
|
||||||
new: 'Agregar:'
|
add: 'Agregar'
|
||||||
|
filter: 'Filtrar'
|
||||||
index: 'Artículos'
|
index: 'Artículos'
|
||||||
edit: 'Editar'
|
edit: 'Editar'
|
||||||
preview:
|
preview:
|
||||||
|
|
Loading…
Reference in a new issue