Sha256: a9f91471aab8902ab7ab95cc85690c4246ce7bc882ef802f9e14e019f8eabfdf

Contents?: true

Size: 1.09 KB

Versions: 25

Compression:

Stored size: 1.09 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 }
      = sanitize format_post_text(post)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta56 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta55 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta54 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta53 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta52 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta51 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta50 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta49 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta48 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta47 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta46 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta45 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta44 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta43 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta42 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta41 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta40 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta39 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta38 app/views/my_forum/topics/_post.haml
my_forum-0.0.1.beta37 app/views/my_forum/topics/_post.haml