migas de pan

This commit is contained in:
f 2018-02-05 14:27:12 -03:00
parent b867f2ea97
commit a95bb4be97
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7
8 changed files with 48 additions and 6 deletions

View 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

View file

@ -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'

View file

@ -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

View file

@ -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'

View file

@ -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

View file

@ -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

View file

@ -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'

View file

@ -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'