Skip to content

Instantly share code, notes, and snippets.

@wikimatze

wikimatze/show.haml

Last active Oct 14, 2018
Embed
What would you like to do?
padrino blog tutorial show.haml
%section.articles
.column.is-8.is-offset-2
.card.article
.card-content
.media
.media-content.has-text-centered
%h3.title.article-title= @post.title
.tags.has-addons.level-item
%span.tag.is-rounded= time_ago_in_words(@post.created_at || Time.now) + ' ago'
.content.article-body
= simple_format(@post.body)
%p= link_to 'View all posts', url_for(:posts, :index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment