Sha256: 8c9284eaa48a39ddf86e96a292698f4da45f6dba7a3f83612f55a45a5ff889cf

Contents?: true

Size: 1.33 KB

Versions: 18

Compression:

Stored size: 1.33 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' => 'private',
                  'data-thredded-topic-posts-per-page' => Thredded.posts_per_page 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

18 entries across 18 versions & 1 rubygems

Version Path
thredded-1.1.0 app/views/thredded/private_topics/index.html.erb
thredded-1.0.1 app/views/thredded/private_topics/index.html.erb
thredded-1.0.0 app/views/thredded/private_topics/index.html.erb
thredded-0.16.16 app/views/thredded/private_topics/index.html.erb
thredded-0.16.15 app/views/thredded/private_topics/index.html.erb
thredded-0.16.14 app/views/thredded/private_topics/index.html.erb
thredded-0.16.13 app/views/thredded/private_topics/index.html.erb
thredded-0.16.12 app/views/thredded/private_topics/index.html.erb
thredded-0.16.11 app/views/thredded/private_topics/index.html.erb
thredded-0.16.10 app/views/thredded/private_topics/index.html.erb
thredded-0.16.9 app/views/thredded/private_topics/index.html.erb
thredded-0.16.8 app/views/thredded/private_topics/index.html.erb
thredded-0.16.7 app/views/thredded/private_topics/index.html.erb
thredded-0.16.6 app/views/thredded/private_topics/index.html.erb
thredded-0.16.5 app/views/thredded/private_topics/index.html.erb
thredded-0.16.4 app/views/thredded/private_topics/index.html.erb
thredded-0.16.3 app/views/thredded/private_topics/index.html.erb
thredded-0.16.1 app/views/thredded/private_topics/index.html.erb