Sha256: c59bee31d1ca8ecdefd0675bfa3ff441d5d3067677a9687b38b9ce3cc31a5999
Contents?: true
Size: 1.05 KB
Versions: 9
Compression:
Stored size: 1.05 KB
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| - if can?(:read, topic) %tr %td - if topic.locked 🔒 - 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
9 entries across 9 versions & 2 rubygems