Created
January 12, 2014 03:46
-
-
Save julioprotzek/8380539 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html | |
head | |
meta name="viewport" content="width=device-width, initial-scale=1.0" | |
title Paporeto | |
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true | |
= csrf_meta_tags | |
/[if lt IE 9] | |
= javascript_include_tag "html5shiv", "data-turbolinks-track" => true | |
= javascript_include_tag "respond.min", "data-turbolinks-track" => true | |
body | |
.navbar.navbar-inverse.navbar-fixed-top | |
.container | |
.navbar-header | |
= link_to 'Paporeto', root_path, class: 'navbar-brand' | |
.navbar-collapse | |
ul.nav.navbar-nav | |
li.active = link_to 'Artigos', articles_path | |
li = link_to 'Categorias', categories_path | |
.container | |
= yield | |
= javascript_include_tag "application", "data-turbolinks-track" => true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p Artigo atualizado <b>#{distance_of_time_in_words_to_now(@article.updated_at)}</b> atrás |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root 'articles#index' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p: a href="http://startae.com.br" target="_blank" style="color: red" Startaê | |
p = link_to 'Startaê', 'http://startae.com.br', target: '_blank', style: 'color: red' | |
a href="#" target="_blank" | |
p Lorem | |
p Ipsum | |
= link_to '#' do | |
p Lorem | |
p Ipsum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = link_to 'Listar artigos', articles_path | |
p = link_to 'Criar artigo', new_article_path | |
p = link_to 'Editar artigo', edit_article_path(@article) | |
p = link_to 'Ver artigo', @article | |
p = link_to 'Excluir artigo', @article, method: :delete, data: {confirm: 'Tem certeza?'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = link_to 'Startaê', 'http://startae.com.br', method: :post, data: {confirm: 'Tem certeza?'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = number_to_currency(3_999.99, precision: 3, locale: :en) | |
p = number_to_humann(3_000_000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment