Sha256: 67aab81cb1edb9baa4e10b9e7f8e949edc6ad15478223cab2e307da74a051562

Contents?: true

Size: 1.22 KB

Versions: 26

Compression:

Stored size: 1.22 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',
                 private_topic: @new_private_topic,
                 css_class: 'thredded--is-compact',
                 placeholder: t('thredded.private_topics.form.title_placeholder_start') if @new_private_topic %>

      <%= render @private_topics %>

      <% unless unread_private_topics_count.zero? %>
        <%= 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 -%>
  <% end %>

  <footer class="thredded--pagination-bottom">
    <%= paginate @private_topics %>
  </footer>
<% end %>

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
thredded-0.16.0 app/views/thredded/private_topics/index.html.erb
thredded-0.15.5 app/views/thredded/private_topics/index.html.erb
thredded-0.15.4 app/views/thredded/private_topics/index.html.erb
thredded-0.15.3 app/views/thredded/private_topics/index.html.erb
thredded-0.15.2 app/views/thredded/private_topics/index.html.erb
thredded-0.15.1 app/views/thredded/private_topics/index.html.erb
threddedDANIEL-0.14.5 app/views/thredded/private_topics/index.html.erb
thredded-0.14.4 app/views/thredded/private_topics/index.html.erb
thredded-0.14.3 app/views/thredded/private_topics/index.html.erb
thredded-0.14.2 app/views/thredded/private_topics/index.html.erb
thredded-0.14.1 app/views/thredded/private_topics/index.html.erb
thredded-0.14.0 app/views/thredded/private_topics/index.html.erb
thredded-0.13.8 app/views/thredded/private_topics/index.html.erb
thredded-0.13.7 app/views/thredded/private_topics/index.html.erb
thredded-0.13.6 app/views/thredded/private_topics/index.html.erb
thredded-0.13.5 app/views/thredded/private_topics/index.html.erb
thredded-0.13.4 app/views/thredded/private_topics/index.html.erb
thredded-0.13.3 app/views/thredded/private_topics/index.html.erb
thredded-0.13.2 app/views/thredded/private_topics/index.html.erb
thredded-0.13.1 app/views/thredded/private_topics/index.html.erb