Sha256: f14db6fd92463ad5377e7555c8e66907334a54d564dea54e6bca4a3b47798720

Contents?: true

Size: 921 Bytes

Versions: 7

Compression:

Stored size: 921 Bytes

Contents

- post_counter += 1

.row.post-header{ id: "post_number_#{post_counter}"}
  .col-md-10.post_from_user_login
    - user_login = post.user.try(:login)
    = online_user_marker(user_login)
    = user_login
  .col-md-2.post_number.text-right
    - # TODO optimize condition!
    - if current_user and current_user.is_admin? and post.topic.posts.first != post
      =link_to t('.delete'), forum_topic_post_path(@forum, post.topic, post), class: 'btn btn-xs btn-danger', method: :delete, data: { confirm: "Are you sure?" }
    %button.btn.btn-xs.btn-warning.quote-post{ data: { post_id: post.id } }
      =t('.quote')
    =link_to t('.number', post_number: post_counter), forum_topic_path(@forum, post.topic, show_post: post_counter)
.row
  .col-md-2
    = render 'user_info', post: post
  .col-md-10
    .created_at= t('.sent', datetime: time(post.created_at))
    #post_container{ id: post.id }
      = format_post_text(post)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta28 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta27 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta26 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta25 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta24 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta23 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta22 app/views/my_forum/topics/_post.haml