Merge pull request #3376 from LextrendIT/3350_rename_debates_comments_admin

Refactor admin/debates and admin/comments to hidden
This commit is contained in:
Javier Martín
2019-06-05 19:15:21 +02:00
committed by GitHub
20 changed files with 63 additions and 62 deletions

View File

@@ -48,6 +48,7 @@ Rails.application.configure do
# config.action_cable.url = 'wss://example.com/cable'
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true

View File

@@ -133,9 +133,9 @@ ignore_unused:
- "date.order"
- "unauthorized.*"
- "admin.officials.level_*"
- "admin.comments.index.filter*"
- "admin.hidden_comments.index.filter*"
- "admin.banners.index.filters.*"
- "admin.debates.index.filter*"
- "admin.hidden_debates.index.filter*"
- "admin.hidden_proposals.index.filter*"
- "admin.proposal_notifications.index.filter*"
- "admin.budgets.index.filter*"
@@ -150,7 +150,7 @@ ignore_unused:
- "admin.legislation.processes.proposals.select_order"
- "admin.legislation.draft_versions.*.submit_button"
- "admin.legislation.questions.*.submit_button"
- "admin.comments.index.hidden_*"
- "admin.hidden_comments.index.hidden_*"
- "admin.settings.index.features.*"
- "admin.polls.*.submit_button"
- "admin.booths.*.submit_button"

View File

@@ -355,7 +355,7 @@ en:
notice: "Progress bar updated successfully"
delete:
notice: "Progress bar deleted successfully"
comments:
hidden_comments:
index:
filter: Filter
filters:
@@ -430,7 +430,7 @@ en:
request: Requested resource
update:
success: The task has been marked as solved.
debates:
hidden_debates:
index:
filter: Filter
filters:

View File

@@ -355,7 +355,7 @@ es:
notice: "Barra de progreso actualizada"
delete:
notice: "Barra de progreso eliminada correctamente"
comments:
hidden_comments:
index:
filter: Filtro
filters:
@@ -430,7 +430,7 @@ es:
request: Recurso solicitado
update:
success: La tarea ha sido marcada como resuelta
debates:
hidden_debates:
index:
filter: Filtro
filters:

View File

@@ -22,7 +22,7 @@ namespace :admin do
end
end
resources :debates, only: :index do
resources :hidden_debates, only: :index do
member do
put :restore
put :confirm_hide
@@ -75,7 +75,7 @@ namespace :admin do
collection { get :search }
end
resources :comments, only: :index do
resources :hidden_comments, only: :index do
member do
put :restore
put :confirm_hide