Sha256: bf98ff1a604757cc65cc6632bdce82e9124356b28e23c7bb77cbea94d726c60e

Contents?: true

Size: 802 Bytes

Versions: 4

Compression:

Stored size: 802 Bytes

Contents

<% content_for :thredded_page_title, t('thredded.topics.search.page_title') %>
<% content_for :thredded_page_id, 'thredded--topic-search-results' %>
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>

<%= thredded_page do %>
  <% if @topics.present? %>
    <p class="thredded--alert thredded--alert-success">
      <%= t 'thredded.topics.search.results_message', query: "'#{@query}'" %>
    </p>
    <section class="thredded--main-section thredded--topics">
      <%= render @topics %>
    </section>
    <footer class="thredded--pagination-bottom">
      <%= paginate @topics %>
    </footer>
  <% else %>
    <p class="thredded--alert thredded--alert-danger">
      <%= t 'thredded.topics.search.no_results_message', query: "'#{@query}'" %>
    </p>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-0.11.0 app/views/thredded/topics/search.html.erb
thredded-0.10.1 app/views/thredded/topics/search.html.erb
thredded-0.10.0 app/views/thredded/topics/search.html.erb
thredded-0.9.4 app/views/thredded/topics/search.html.erb