diff --git a/app/controllers/debates_controller.rb b/app/controllers/debates_controller.rb index 1c0765c64..1b1184f59 100644 --- a/app/controllers/debates_controller.rb +++ b/app/controllers/debates_controller.rb @@ -7,7 +7,7 @@ class DebatesController < ApplicationController before_action :authenticate_user!, except: [:index, :show] has_orders %w{hot_score confidence_score created_at most_commented random}, only: :index - has_orders %w{most_voted created_at}, only: :show + has_orders %w{confidence_score created_at}, only: :show load_and_authorize_resource respond_to :html, :js diff --git a/app/controllers/proposals_controller.rb b/app/controllers/proposals_controller.rb index 4c308ebe2..f91e65b8a 100644 --- a/app/controllers/proposals_controller.rb +++ b/app/controllers/proposals_controller.rb @@ -7,7 +7,7 @@ class ProposalsController < ApplicationController before_action :authenticate_user!, except: [:index, :show] has_orders %w{hot_score confidence_score created_at most_commented random}, only: :index - has_orders %w{most_voted created_at}, only: :show + has_orders %w{confidence_score created_at}, only: :show load_and_authorize_resource respond_to :html, :js diff --git a/config/locales/en.yml b/config/locales/en.yml index 83a4bf0e4..21b4a6872 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -245,7 +245,7 @@ en: comments: select_order: "Sort by" orders: - most_voted: "Most voted" + confidence_score: "Most voted" created_at: "Newest" form: leave_comment: Write a comment diff --git a/config/locales/es.yml b/config/locales/es.yml index c17484c99..9150404e3 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -245,7 +245,7 @@ es: comments: select_order: "Ordenar por" orders: - most_voted: "Más votados" + confidence_score: "Más votados" created_at: "Más nuevos" form: leave_comment: Deja tu comentario