mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 10:38:50 +01:00
Move translation viewing to admin namespace
This commit is contained in:
18
app/controllers/admin/translations_controller.rb
Normal file
18
app/controllers/admin/translations_controller.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
class Admin::TranslationsController < AdminController
|
||||
before_action :set_translation, only: :show
|
||||
|
||||
# GET /translations
|
||||
# GET /translations.json
|
||||
def index
|
||||
@translations = Translation.paginate(page: params[:page])
|
||||
end
|
||||
|
||||
# GET /translations/1
|
||||
# GET /translations/1.json
|
||||
def show
|
||||
end
|
||||
|
||||
def set_translation
|
||||
@translation = Translation.find(params[:id])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user