Sha256: f00a2b6e348c04063ad9a0aab42a155920cbeac1c44202507fc5f5734f0d2b3b

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

- post_counter += 1

.row.post-header{ id: "post_number_#{post_counter}"}
  .col-md-10
    %span.post_from_user_login
      - user_login = post.user.try(:login)
      %span.user_profile_popover{ title: user_login, data: { toggle: 'popover', content: (render partial: 'profile_popover', locals: { user: post.user })}}
        = online_user_marker(user_login)
        %span.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

3 entries across 3 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta31 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta30 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta29 app/views/my_forum/topics/_post.haml