Sha256: e77c151bf59be61b20cac803e866cf0ea8ae50cc0358044c2e13ff43b2282298

Contents?: true

Size: 945 Bytes

Versions: 7

Compression:

Stored size: 945 Bytes

Contents

<% if policy(messageboard).read? %>
  <%= link_to messageboard_topics_path(messageboard), class: 'thredded--messageboard' do %>
    <header>
      <h2 class="thredded--messageboard--title"><%= messageboard.name %></h2>
      <h3 class="thredded--messageboard--meta">
        <%= t 'thredded.messageboard.topics_and_posts_counts',
              topics_count: number_to_human(messageboard.topics_count).downcase,
              posts_count:  number_to_human(messageboard.posts_count).downcase %>
      </h3>
    </header>

    <p class="thredded--messageboard--description"><%= messageboard.description %></p>

    <% if messageboard.last_topic %>
      <p class="thredded--messageboard--byline">
        <%= t 'thredded.messageboard.last_updated_by_html',
              time_ago: time_ago(messageboard.last_topic.last_post_at),
              user:     messageboard.last_user.thredded_display_name %>
      </p>
    <% end %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thredded-0.9.4 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.9.3 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.9.2 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.9.1 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.8.4 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.8.2 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.7.0 app/views/thredded/messageboards/_messageboard.html.erb