Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
839654fc
Commit
839654fc
authored
Jul 08, 2011
by
Eric Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#191
] Refactor: extract search pagination to partial
parent
0b042903
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
_pagination.html.erb
app/views/search/_pagination.html.erb
+10
-0
index.rhtml
app/views/search/index.rhtml
+1
-10
No files found.
app/views/search/_pagination.html.erb
0 → 100644
View file @
839654fc
<div
class=
"search-pagination"
>
<p>
<%
if
pagination_previous_date
%>
<%=
link_to_previous_search_page
(
pagination_previous_date
)
%>
<%
end
%>
<%
if
pagination_next_date
%>
<%=
link_to_next_search_page
(
pagination_next_date
)
%>
<%
end
%>
</p>
</div>
app/views/search/index.rhtml
View file @
839654fc
...
...
@@ -36,15 +36,6 @@
</dl>
<%
end
%>
<div
class=
"search-pagination"
>
<p>
<%
if
@pagination_previous_date
%>
<%=
link_to_previous_search_page
(
@pagination_previous_date
)
%>
<%
end
%>
<%
if
@pagination_next_date
%>
<%=
link_to_next_search_page
(
@pagination_next_date
)
%>
<%
end
%>
</p>
</div>
<%=
render
:partial
=>
'pagination'
,
:locals
=>
{
:pagination_previous_date
=>
@pagination_previous_date
,
:pagination_next_date
=>
@pagination_next_date
}
%>
<%
html_title
(
l
(
:label_search
))
-%>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment