Change links for proposals lists
Changed applied: - Remove Archived proposals from tab and add a link under Proposals lists - Remove Popular proposals link from custom section and add it to the Proposals lists - Remove Retired proposals link from custom section and add it to the Proposals lists - Remove Selected proposals link from custom section and add it to the Proposals lists
This commit is contained in:
@@ -53,6 +53,7 @@ class ProposalsController < ApplicationController
|
||||
load_retired
|
||||
load_selected
|
||||
load_featured
|
||||
remove_archived_from_order_links
|
||||
end
|
||||
|
||||
def vote
|
||||
@@ -156,6 +157,10 @@ class ProposalsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def remove_archived_from_order_links
|
||||
@valid_orders.delete("archival_date")
|
||||
end
|
||||
|
||||
def set_view
|
||||
@view = (params[:view] == "minimal") ? "minimal" : "default"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user