render search crawlers header as partial
This commit is contained in:
@@ -1,5 +1,2 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<h2><%= context %> Search</h2>
|
||||||
|
<div class="searchResultHeader">
|
||||||
|
<p>
|
||||||
|
Results for "<%= params[:search_term] %>"
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
<%= button_to 'Search again', crawlers_tiss_crawler_search_url, :method => 'get' %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
@@ -1,6 +1,4 @@
|
|||||||
<h2>Courses Search ("<%= params[:search_term] %>")</h2>
|
<%= render :partial => "crawlers/header", :locals => {:context => "Courses"} %>
|
||||||
|
|
||||||
<%= back_to_search_button %>
|
|
||||||
|
|
||||||
<ul class="courses-list">
|
<ul class="courses-list">
|
||||||
<% if @courses %>
|
<% if @courses %>
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
<h2>People Search ("<%= params[:search_term] %>")</h2>
|
<%= render :partial => "crawlers/header", :locals => {:context => "People"} %>
|
||||||
|
|
||||||
<%= back_to_search_button %>
|
|
||||||
|
|
||||||
<ul class="people-list">
|
<ul class="people-list">
|
||||||
<% @people.each_with_index do |person| %>
|
<% @people.each_with_index do |person| %>
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
<h2>Projects Search ("<%= params[:search_term] %>")</h2>
|
<%= render :partial => "crawlers/header", :locals => {:context => "Projects"} %>
|
||||||
|
|
||||||
<%= back_to_search_button %>
|
|
||||||
|
|
||||||
<ul class="projects-list">
|
<ul class="projects-list">
|
||||||
<% if @projects %>
|
<% if @projects %>
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
<h2>Theses Search ("<%= params[:search_term] %>")</h2>
|
<%= render :partial => "crawlers/header", :locals => {:context => "Theses"} %>
|
||||||
|
|
||||||
<%= back_to_search_button %>
|
|
||||||
|
|
||||||
<ul class="theses-list">
|
<ul class="theses-list">
|
||||||
<% if @theses %>
|
<% if @theses %>
|
||||||
|
|||||||
Reference in New Issue
Block a user