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:
Julian Herrero
2019-04-16 17:55:58 +02:00
parent 28835a29ef
commit b68a872298
9 changed files with 37 additions and 25 deletions

View File

@@ -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