Sha256: 464a251e964695fd6fddb70b7b818d6dd5972ae696d7426c218c599a1e58754b

Contents?: true

Size: 1002 Bytes

Versions: 1

Compression:

Stored size: 1002 Bytes

Contents

%h1 Viewing Forum "#{@forum.name}"
- if @forum.moderator?(mongoid_forums_user)
  %b You are a moderator on this forum.
%br
%br
= link_to "Add a topic", forum_path(@forum) + '/new'
%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|
    %tr
      %td
        - if topic.locked
          &#128274
        - if topic.hidden
          ⚠
        - if topic.pinned
          *
        = 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
        = mongoid_forums_user ? topic.unread_post_count(mongoid_forums_user) : ""
      %td
        = topic.posts.count
      %td
        = topic.views_count ? topic.views_count : "None"

Version data entries

1 entries across 1 versions & 1 rubygems

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