offer a back to search button
This commit is contained in:
parent
0a849a92e3
commit
fcc07a75b4
@ -1,2 +1,5 @@
|
|||||||
module Crawlers::TissCrawlerHelper
|
module Crawlers::TissCrawlerHelper
|
||||||
|
def back_to_search_button
|
||||||
|
button_to 'Search again', crawlers_tiss_crawler_search_url, :method => 'get'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<h2>Courses Search ("<%= params[:search_term] %>")</h2>
|
<h2>Courses Search ("<%= params[:search_term] %>")</h2>
|
||||||
|
|
||||||
|
<%= back_to_search_button %>
|
||||||
|
|
||||||
<ul class="courses-list">
|
<ul class="courses-list">
|
||||||
<% if @courses %>
|
<% if @courses %>
|
||||||
<% @courses.each_with_index do |course| %>
|
<% @courses.each_with_index do |course| %>
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<h2>People Search ("<%= params[:search_term] %>")</h2>
|
<h2>People Search ("<%= params[:search_term] %>")</h2>
|
||||||
|
|
||||||
|
<%= back_to_search_button %>
|
||||||
|
|
||||||
<ul class="people-list">
|
<ul class="people-list">
|
||||||
<% @people.each_with_index do |person| %>
|
<% @people.each_with_index do |person| %>
|
||||||
<li class="person">
|
<li class="person">
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<h2>Projects Search ("<%= params[:search_term] %>")</h2>
|
<h2>Projects Search ("<%= params[:search_term] %>")</h2>
|
||||||
|
|
||||||
|
<%= back_to_search_button %>
|
||||||
|
|
||||||
<ul class="projects-list">
|
<ul class="projects-list">
|
||||||
<% if @projects %>
|
<% if @projects %>
|
||||||
<% @projects.each_with_index do |project| %>
|
<% @projects.each_with_index do |project| %>
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<h2>Theses Search ("<%= params[:search_term] %>")</h2>
|
<h2>Theses Search ("<%= params[:search_term] %>")</h2>
|
||||||
|
|
||||||
|
<%= back_to_search_button %>
|
||||||
|
|
||||||
<ul class="theses-list">
|
<ul class="theses-list">
|
||||||
<% if @theses %>
|
<% if @theses %>
|
||||||
<% @theses.each_with_index do |thesis| %>
|
<% @theses.each_with_index do |thesis| %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user