Modified: branches/neiss/app/views/layouts/_paginate.rhtml (2451 => 2452)
--- branches/neiss/app/views/layouts/_paginate.rhtml 2010-06-24 15:23:33 UTC (rev 2451)
+++ branches/neiss/app/views/layouts/_paginate.rhtml 2010-06-24 16:05:12 UTC (rev 2452)
@@ -1,17 +1,17 @@
+<% if local_assigns[:sort_by] %>
+ <div style="float: right; margin: 1em;">
+ Sort by:
+ <select = this.options[this.selectedIndex].value;">
+ <% sort_by.each do |args| %>
+ <option value="?order=<%= args["option"] -%>" <% if params[:order] == args["option"] -%> selected="selected"<% end -%>><%= args["label"] -%></option>
+ <% end %>
+ </select>
+ </div>
+<% end %>
+
<% if collection.page_count != collection.first_page -%>
<div class="pagination">
- <% if local_assigns[:sort_by] %>
- <div style="float: right; margin: 1em;">
- Sort by:
- <select = this.options[this.selectedIndex].value;">
- <% sort_by.each do |args| %>
- <option value="?order=<%= args["option"] -%>" <% if params[:order] == args["option"] -%> selected="selected"<% end -%>><%= args["label"] -%></option>
- <% end %>
- </select>
- </div>
- <% end %>
-
<ul>
<% if collection.previous_page? -%>
<li class="nextpage">