1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-26 18:18:51 +01:00

Move translation viewing to admin namespace

This commit is contained in:
2015-02-16 09:37:13 +01:00
parent 49c7d97a41
commit 6b463417ba
26 changed files with 96 additions and 39 deletions

View File

@@ -0,0 +1,6 @@
de:
admin:
dashboard:
index:
administration: "Administration"
view_translations: "Übersetzungen anschauen"

View File

@@ -7,7 +7,6 @@ de:
source_code: Quelltext
translation_source_explanation: Hier kommt der HTML-Quelltext der Übersetzung hin.
new:
back: Zurück
new_translation: Neue Übersetzung für Problem %{id}
notice:
successfully_created: Übersetzung wurde erfolgreich erstellt.

View File

@@ -3,7 +3,11 @@ Rails.application.routes.draw do
resources :problems, only: [:index, :show] do
resources :translations, only: [:new, :create]
end
resources :translations, only: [:index, :show]
namespace :admin do
get '', to: 'dashboard#index', as: '/'
resources :translations, only: [:index, :show]
end
mathjax 'mathjax'