Sha256: 44cd1fbcc04c793866cd91c08d7a3a67a758a726d845e544081a65db92e72c59

Contents?: true

Size: 921 Bytes

Versions: 11

Compression:

Stored size: 921 Bytes

Contents

<% if policy(messageboard).read? %>
  <%= view_hooks.messageboards_index.messageboard.render self, messageboard: messageboard do %>
    <%= link_to messageboard_topics_path(messageboard), class: 'thredded--messageboard' do %>
      <header class="thredded--messageboard--header">
        <h2 class="thredded--messageboard--title"><%= messageboard.name %></h2>
        <%= render 'thredded/messageboards/messageboard_meta', messageboard: messageboard %>
      </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 %>
<% end %>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
thredded-0.15.5 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.15.4 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.15.3 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.15.2 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.15.1 app/views/thredded/messageboards/_messageboard.html.erb
threddedDANIEL-0.14.5 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.14.4 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.14.3 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.14.2 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.14.1 app/views/thredded/messageboards/_messageboard.html.erb
thredded-0.14.0 app/views/thredded/messageboards/_messageboard.html.erb