offer a back to search button

This commit is contained in:
Pfingstfrosch 2020-05-31 14:25:41 +02:00
parent 0a849a92e3
commit fcc07a75b4
5 changed files with 11 additions and 0 deletions

View File

@ -1,2 +1,5 @@
module Crawlers::TissCrawlerHelper
def back_to_search_button
button_to 'Search again', crawlers_tiss_crawler_search_url, :method => 'get'
end
end

View File

@ -1,5 +1,7 @@
<h2>Courses Search ("<%= params[:search_term] %>")</h2>
<%= back_to_search_button %>
<ul class="courses-list">
<% if @courses %>
<% @courses.each_with_index do |course| %>

View File

@ -1,5 +1,7 @@
<h2>People Search ("<%= params[:search_term] %>")</h2>
<%= back_to_search_button %>
<ul class="people-list">
<% @people.each_with_index do |person| %>
<li class="person">

View File

@ -1,5 +1,7 @@
<h2>Projects Search ("<%= params[:search_term] %>")</h2>
<%= back_to_search_button %>
<ul class="projects-list">
<% if @projects %>
<% @projects.each_with_index do |project| %>

View File

@ -1,5 +1,7 @@
<h2>Theses Search ("<%= params[:search_term] %>")</h2>
<%= back_to_search_button %>
<ul class="theses-list">
<% if @theses %>
<% @theses.each_with_index do |thesis| %>