Sha256: dabf83a3f42e442e346b558a9f108276818f202950e0d165eaeb80802b300cd7

Contents?: true

Size: 974 Bytes

Versions: 6

Compression:

Stored size: 974 Bytes

Contents

<% content_for :thredded_page_title, messageboard.name %>
<% content_for :thredded_page_id, 'thredded--topics-index' %>
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>

<%= thredded_page do %>
  <%= content_tag :section, class: 'thredded--main-section thredded--topics', 'data-thredded-topics' => true do %>
    <%= render 'thredded/topics/form',
               messageboard: messageboard,
               topic:        @new_topic,
               css_class:    'thredded--is-compact',
               placeholder:  t('thredded.topics.form.title_placeholder_start') if @new_topic %>
    <%= render @topics %>
  <% end %>

  <footer>
    <%= paginate @topics %>
  </footer>

  <div class="thredded--messageboards--actions">
    <% if policy(messageboard).update? %>
      <a class="thredded--button" href="<%= edit_messageboard_path(messageboard) %>">
        <%= t('thredded.nav.edit_messageboard') %>
      </a>
    <% end %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thredded-0.6.3 app/views/thredded/topics/index.html.erb
thredded-0.6.2 app/views/thredded/topics/index.html.erb
thredded-0.6.1 app/views/thredded/topics/index.html.erb
thredded-0.6.0 app/views/thredded/topics/index.html.erb
thredded-0.5.1 app/views/thredded/topics/index.html.erb
thredded-0.5.0 app/views/thredded/topics/index.html.erb