5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 03:41:41 +00:00

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
.col
= 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
.col
%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
.col
= 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
.col
%h1= @post.title

View file

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

View file

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

View file

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