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
|
.row
|
||||||
.col
|
.col
|
||||||
= render 'posts/form'
|
= 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
|
.row
|
||||||
.col
|
.col
|
||||||
%h1= @site.name
|
%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
|
.row
|
||||||
.col
|
.col
|
||||||
= render 'posts/form'
|
= 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
|
.row
|
||||||
.col
|
.col
|
||||||
%h1= @post.title
|
%h1= @post.title
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
|
||||||
|
.row
|
||||||
|
.col
|
||||||
|
= render 'layouts/breadcrumb', crumbs: [ t('sites.index') ]
|
||||||
|
.row
|
||||||
|
.col
|
||||||
%h1= t('sites.title')
|
%h1= t('sites.title')
|
||||||
|
|
||||||
%table.table.table-striped.table-condensed
|
%table.table.table-striped.table-condensed
|
||||||
|
|
|
@ -7,9 +7,11 @@ en:
|
||||||
submit: 'Log in'
|
submit: 'Log in'
|
||||||
sites:
|
sites:
|
||||||
title: 'Sites'
|
title: 'Sites'
|
||||||
|
index: 'Sites'
|
||||||
footer:
|
footer:
|
||||||
powered_by: 'is developed by'
|
powered_by: 'is developed by'
|
||||||
posts:
|
posts:
|
||||||
|
index: 'Posts'
|
||||||
edit: 'Edit'
|
edit: 'Edit'
|
||||||
save: 'Save'
|
save: 'Save'
|
||||||
date: 'Publication date'
|
date: 'Publication date'
|
||||||
|
|
|
@ -7,9 +7,11 @@ es:
|
||||||
submit: 'Ingresar'
|
submit: 'Ingresar'
|
||||||
sites:
|
sites:
|
||||||
title: 'Sitios'
|
title: 'Sitios'
|
||||||
|
index: 'Sitios'
|
||||||
footer:
|
footer:
|
||||||
powered_by: 'es desarrollada por'
|
powered_by: 'es desarrollada por'
|
||||||
posts:
|
posts:
|
||||||
|
index: 'Artículos'
|
||||||
edit: 'Editar'
|
edit: 'Editar'
|
||||||
save: 'Guardar'
|
save: 'Guardar'
|
||||||
date: 'Fecha de publicación'
|
date: 'Fecha de publicación'
|
||||||
|
|
Loading…
Reference in a new issue