mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-26 18:18:51 +01:00
Add problem count changing to the admin dashboard
This commit is contained in:
@@ -3,4 +3,10 @@ de:
|
||||
dashboard:
|
||||
index:
|
||||
administration: "Administration"
|
||||
view_translations: "Übersetzungen anschauen"
|
||||
view_translations: "Übersetzungen anschauen"
|
||||
update_problem_count: "Problem-Anzahl aktualisieren"
|
||||
update: "Aktualisieren"
|
||||
update_problem_count:
|
||||
success_message: "Problem-Anzahl wurde erfolgreich aktualisiert!"
|
||||
failure_message: "Problem-Anzahl konnte nicht aktualisiert werden! Grund: %{error}"
|
||||
no_problem_count: "Keine Problem-Anzahl gegeben!"
|
||||
@@ -6,6 +6,7 @@ Rails.application.routes.draw do
|
||||
|
||||
namespace :admin do
|
||||
get '', to: 'dashboard#index', as: '/'
|
||||
post '/update_problem_count', to: 'dashboard#update_problem_count'
|
||||
resources :translations, only: [:index, :show]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user