Sha256: 9d8debb6579cc90bb07f430346815ff59f74ce1ac6ab380047ddebd591409fdd

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

<% content_for :thredded_page_title, t('thredded.nav.private_topics') %>
<% content_for :thredded_page_id, 'thredded--private-topics-index' %>
<% content_for :thredded_breadcrumbs, render('thredded/private_topics/breadcrumbs') %>

<%= thredded_page do %>
  <%= content_tag :section,
    class: 'thredded--main-section thredded--private-topics',
    'data-thredded-topics' => true do %>

    <% if @private_topics.empty? -%>
      <%= render 'thredded/private_topics/no_private_topics' %>
    <% else -%>
      <%= render 'thredded/private_topics/form',
        messageboard:  messageboard,
        private_topic: @new_private_topic,
        css_class:     'thredded--is-compact',
        placeholder:   t('thredded.private_topics.form.title_placeholder_start') %>

      <%= render @private_topics %>

      <%= link_to t('thredded.nav.mark_all_read'),
        mark_all_private_topics_read_path,
        class: 'thredded--button thredded--button-light thredded--button-wide',
        method: :put -%>
    <% end -%>
  <% end %>

  <footer>
    <%= paginate @private_topics %>
  </footer>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thredded-0.8.4 app/views/thredded/private_topics/index.html.erb
thredded-0.8.2 app/views/thredded/private_topics/index.html.erb