Modified: trunk/app/views/layouts/_paginate.rhtml (2450 => 2451)
--- trunk/app/views/layouts/_paginate.rhtml 2010-06-23 13:44:41 UTC (rev 2450)
+++ trunk/app/views/layouts/_paginate.rhtml 2010-06-24 15:23:33 UTC (rev 2451)
@@ -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">