Sha256: 52ae4822a715f1a8f248e8a4bd7fb31dcc5741ea323a26bb6b9234e3010371ff

Contents?: true

Size: 1.63 KB

Versions: 18

Compression:

Stored size: 1.63 KB

Contents

<% content_for :thredded_page_title,
               messageboard_or_nil ?
                   t('thredded.unread_topics.page_title_in_messageboard', messageboard: messageboard.name) :
                   t('thredded.unread_topics.page_title') %>
<% content_for :thredded_page_id, 'thredded--unread-topics' %>
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>

<%= thredded_page do %>
  <% if @topics.present? %>
    <%= define_svg_icons('thredded/follow.svg', 'thredded/unfollow.svg') %>
    <%= content_tag :section,
                    class: 'thredded--main-section thredded--topics',
                    'data-thredded-topics' => true,
                    'data-thredded-topic-posts-per-page' => Thredded.posts_per_page do %>
      <%= render 'thredded/topics/form',
                 topic: @new_topic,
                 css_class: 'thredded--is-compact',
                 placeholder: t('thredded.topics.form.title_placeholder_start') if @new_topic %>
      <%= render partial: 'thredded/topics/topic',
                 collection: @topics,
                 locals: {
                     topics: @topics,
                     show_messageboard: !messageboard_or_nil
                 } %>
    <% end %>
    <footer class="thredded--pagination-bottom">
      <%= paginate @topics %>
    </footer>
  <% else %>
    <div class="thredded--empty">
      <h3 class="thredded--empty--title"><%= t 'thredded.unread_topics.empty.title' %></h3>
      <p><%= t 'thredded.unread_topics.empty.content' %></p>
    </div>
  <% end %>
  <%= render 'thredded/messageboards/messageboard_actions', messageboard: messageboard if messageboard_or_nil %>
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

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