mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 03:41:41 +00:00
migas de pan
This commit is contained in:
parent
b867f2ea97
commit
a95bb4be97
8 changed files with 48 additions and 6 deletions
7
app/views/layouts/_breadcrumb.haml
Normal file
7
app/views/layouts/_breadcrumb.haml
Normal file
|
@ -0,0 +1,7 @@
|
|||
%nav{'aria-label': 'breadcrumb', role: 'navigation'}
|
||||
%ol.breadcrumb
|
||||
- crumbs.each do |crumb|
|
||||
- if crumb == crumbs.last
|
||||
%li.breadcrumb-item.active{'aria-current': 'page'}= crumb
|
||||
- else
|
||||
%li.breadcrumb-item= crumb
|
|
@ -1,3 +1,13 @@
|
|||
.row
|
||||
.col
|
||||
= render 'layouts/breadcrumb',
|
||||
crumbs: [ link_to(t('sites.index'), sites_path),
|
||||
@site.name,
|
||||
link_to(t('posts.index'),
|
||||
site_posts_path(@site)),
|
||||
link_to(@post.title, site_post_path(@site, @post)),
|
||||
t('posts.edit')]
|
||||
|
||||
.row
|
||||
.col
|
||||
= render 'posts/form'
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
.row
|
||||
.col
|
||||
= render 'layouts/breadcrumb', crumbs: [ link_to(t('sites.index'), sites_path), @site.name, t('posts.index') ]
|
||||
.row
|
||||
.col
|
||||
%h1= @site.name
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
.row
|
||||
.col
|
||||
= render 'layouts/breadcrumb', crumbs: [ link_to(t('sites.index'), sites_path), @site.name, link_to(t('posts.index'), site_posts_path(@site)), t('posts.new') ]
|
||||
.row
|
||||
.col
|
||||
= render 'posts/form'
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
.row
|
||||
.col
|
||||
= render 'layouts/breadcrumb',
|
||||
crumbs: [ link_to(t('sites.index'), sites_path),
|
||||
@site.name,
|
||||
link_to(t('posts.index'),
|
||||
site_posts_path(@site)),
|
||||
@post.title ]
|
||||
|
||||
.row
|
||||
.col
|
||||
%h1= @post.title
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
%h1= t('sites.title')
|
||||
|
||||
%table.table.table-striped.table-condensed
|
||||
%tbody
|
||||
- @sites.each do |site|
|
||||
%tr
|
||||
%td= link_to site.name, site_path(site)
|
||||
.row
|
||||
.col
|
||||
= render 'layouts/breadcrumb', crumbs: [ t('sites.index') ]
|
||||
.row
|
||||
.col
|
||||
%h1= t('sites.title')
|
||||
|
||||
%table.table.table-striped.table-condensed
|
||||
%tbody
|
||||
- @sites.each do |site|
|
||||
%tr
|
||||
%td= link_to site.name, site_path(site)
|
||||
|
|
|
@ -7,9 +7,11 @@ en:
|
|||
submit: 'Log in'
|
||||
sites:
|
||||
title: 'Sites'
|
||||
index: 'Sites'
|
||||
footer:
|
||||
powered_by: 'is developed by'
|
||||
posts:
|
||||
index: 'Posts'
|
||||
edit: 'Edit'
|
||||
save: 'Save'
|
||||
date: 'Publication date'
|
||||
|
|
|
@ -7,9 +7,11 @@ es:
|
|||
submit: 'Ingresar'
|
||||
sites:
|
||||
title: 'Sitios'
|
||||
index: 'Sitios'
|
||||
footer:
|
||||
powered_by: 'es desarrollada por'
|
||||
posts:
|
||||
index: 'Artículos'
|
||||
edit: 'Editar'
|
||||
save: 'Guardar'
|
||||
date: 'Fecha de publicación'
|
||||
|
|
Loading…
Reference in a new issue