removes highlights
This commit is contained in:
@@ -12,19 +12,6 @@ class WelcomeController < ApplicationController
|
|||||||
def welcome
|
def welcome
|
||||||
end
|
end
|
||||||
|
|
||||||
def highlights
|
|
||||||
debates = Debate.sort_by_hot_score.page(params[:page]).per(10).for_render
|
|
||||||
set_debate_votes(debates)
|
|
||||||
|
|
||||||
proposals = Proposal.sort_by_hot_score.page(params[:page]).per(10).for_render
|
|
||||||
set_proposal_votes(proposals)
|
|
||||||
|
|
||||||
@list = (debates.to_a + proposals.to_a).sort{|a, b| b.hot_score <=> a.hot_score}
|
|
||||||
@paginator = debates.total_pages > proposals.total_pages ? debates : proposals
|
|
||||||
|
|
||||||
render 'highlights'
|
|
||||||
end
|
|
||||||
|
|
||||||
def verification
|
def verification
|
||||||
redirect_to verification_path if signed_in?
|
redirect_to verification_path if signed_in?
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
root 'welcome#index'
|
root 'welcome#index'
|
||||||
get '/welcome', to: 'welcome#welcome'
|
get '/welcome', to: 'welcome#welcome'
|
||||||
get '/highlights', to: 'welcome#highlights', as: :highlights
|
|
||||||
get '/cuentasegura', to: 'welcome#verification', as: :cuentasegura
|
get '/cuentasegura', to: 'welcome#verification', as: :cuentasegura
|
||||||
|
|
||||||
resources :debates do
|
resources :debates do
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
<loc>https://decide.madrid.es/</loc>
|
<loc>https://decide.madrid.es/</loc>
|
||||||
<priority>0.7</priority>
|
<priority>0.7</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
|
||||||
<loc>https://decide.madrid.es/highlights</loc>
|
|
||||||
<priority>0.7</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://decide.madrid.es/proposals</loc>
|
<loc>https://decide.madrid.es/proposals</loc>
|
||||||
<priority>0.9</priority>
|
<priority>0.9</priority>
|
||||||
|
|||||||
Reference in New Issue
Block a user