Sha256: b3fda522d915da7e6d35b9f22a5416000cfd19ba16bb78157b031115252e777c

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 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? %>
    <div class="thredded--svg-definitions">
      <%= inline_svg 'thredded/follow.svg', id: 'thredded-follow-icon', title: nil %>
      <%= inline_svg 'thredded/unfollow.svg', id: 'thredded-unfollow-icon' %>
    </div>
    <%= content_tag :section, class: 'thredded--main-section thredded--topics', 'data-thredded-topics' => true 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

1 entries across 1 versions & 1 rubygems

Version Path
thredded-0.16.0 app/views/thredded/topics/unread.html.erb