Commit cdee2213 authored by Martin Markech's avatar Martin Markech
Browse files

remove sortable, but not completely

parent a97907e4
......@@ -26,7 +26,7 @@ module Refinery
acts_as_indexed :fields => [:title, :body, :teaser]
default_scope order('position ASC, publish_date DESC')
default_scope order('publish_date DESC')
def to_param
"#{id}-#{slug}"
......
......@@ -8,18 +8,4 @@
<%= link_to t('.create_new'), refinery.new_news_admin_item_path,
:class => "add_icon" %>
</li>
<% if !searching? && ::Refinery::News::Admin::ItemsController.sortable? && ::Refinery::News::Item.any? %>
<li>
<%= link_to t('.reorder', :what => "Items"),
refinery.news_admin_items_path,
:id => "reorder_action",
:class => "reorder_icon" %>
<%= link_to t('.reorder_done', :what => "Items"),
refinery.news_admin_items_path,
:id => "reorder_action_done",
:style => "display: none;",
:class => "reorder_icon" %>
</li>
<% end %>
</ul>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment