Sha256: 6586336a2e85a52c2628c3da051ba0f374710c94c87393d127da7d366b02a01c

Contents?: true

Size: 1.52 KB

Versions: 45

Compression:

Stored size: 1.52 KB

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">
      <% if messageboard_or_nil %>
        <%= t 'thredded.topics.search.results_in_messageboard_message_html',
              query: @query, messageboard: messageboard.name %>
        <br>
        <a href="<%= messageboards_search_path(q: @query) %>">
          <%= t('thredded.topics.search.search_in_all_messageboards_btn') -%>
        </a>
      <% else %>
        <%= t 'thredded.topics.search.results_message_html', query: @query %>
      <% end %>
    </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">
      <% if messageboard_or_nil %>
        <%= t 'thredded.topics.search.no_results_in_messageboard_message_html',
              query: @query, messageboard: messageboard.name -%>
        <br>
        <a href="<%= messageboards_search_path(q: @query) %>">
          <%= t('thredded.topics.search.search_in_all_messageboards_btn') -%>
        </a>
      <% else %>
        <%= t 'thredded.topics.search.no_results_message_html', query: @query %>
      <% end %>
    </p>
  <% end %>
<% end %>

Version data entries

45 entries across 45 versions & 2 rubygems

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