Sha256: a8e05ce168423726735db4368570e0c040029bd44d15251d80885f1c22b699b0

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

%h1 Viewing Forum "#{@forum.name}"
= link_to "Add a topic", forum_path(@forum) + '/new'
%br
%br
%h2 Topics:
%table{:border => "1"}
  %tr
    %th
      Name
    %th
      Creator
    %th
      Last post
    %th
      Unread posts
    %th
      Posts
    %th
      Views

  - @topics.each do |topic|
    - if allow? "mongoid_forums/topics", :show, topic
      %tr
        %td
          - if topic.locked
            &#128274
          - if topic.hidden
            ⚠
          = link_to topic.name, topic
        %td
          = topic.user.forum_display_name
          = time_ago_in_words( topic.created_at )
          ago
        %td
          = topic.posts.last.user.forum_display_name
          = time_ago_in_words( topic.posts.last.created_at )
          ago
        %td
          = topic.unread_post_count(mongoid_forums_user)
        %td
          = topic.posts.count
        %td
          = topic.views_count ? topic.views_count : "None"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-forums-0.0.2 app/views/mongoid_forums/forums/show.haml
mongoid-forums-0.0.1 app/views/mongoid_forums/forums/show.haml