Skip to content

Instantly share code, notes, and snippets.

@joaowd joaowd/bt.html.haml
Last active Feb 22, 2017

Embed
What would you like to do?
bootstrap
.container
.row.justify-content-md-center
.posts-wrapper.col.col-lg-2
.post
.post-head
.thumb-img
= link_to profile_avatar_select(post.user), profile_path(post.user.user_name)
.user-name{ style: 'position:absolute; margin-top: 10px; margin-left: 55px;' }
= link_to post.user.user_name, profile_path(post.user.user_name)
.time-ago{ style: 'margin-top: 10px;' }
= link_to (time_ago_in_words post.created_at), post_path(post)
.image.center-block
= image_tag post.image.url(:medium), class:'img-responsive'
.post-bottom
= render 'posts/likes', post: post
.caption
.caption-content
.user-name
= link_to post.user.user_name, profile_path(post.user.user_name)
= post.caption
.comments{id: "comments_#{post.id}"}
- if post.comments
= render post.comments, post: post
.comment-like-form.row
.like-button.col-sm-1
= link_to '', like_post_path(post.id), remote: true, id: "like_#{post.id}", class: "like glyphicon #{liked_post post}"
.comment-form.col-sm-11
= form_for([post, post.comments.new], remote: true) do |f|
= f.text_field :content, placeholder: 'Escreve um comentário...', class: "comment_content", id: "comment_content_#{post.id}"
.panel.panel-info.col-12.col-md-auto
.panel-heading Peças de Roupa
%ul.list-group
%table.table.table-striped
%tr
%th Peça
%th Preço
%th Loja
%th Endereço
%tr
%td Calças de Ganga
%td 33€
%td Zara
%td
%a.btn.btn-success.btn-xs{:href => "#", :role => "button"} Comprar
%tr
%td Camisola Vermelha
%td 37,23€
%td Pull&Bear
%td
%a.btn.btn-success.btn-xs{:href => "#", :role => "button"} Comprar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.