Refatored to use shared/title partial

This commit is contained in:
Priit Tark 2015-04-16 16:29:04 +03:00
parent 4c660df43e
commit 8d4124585c
73 changed files with 402 additions and 411 deletions

View file

@ -1,4 +1,4 @@
class Admin::EppLogsController < ApplicationController
class Admin::EppLogsController < AdminController
load_and_authorize_resource class: ApiLog::EppLog
def index

View file

@ -1,4 +1,4 @@
class Admin::ReppLogsController < ApplicationController
class Admin::ReppLogsController < AdminController
load_and_authorize_resource class: ApiLog::ReppLog
def index

View file

@ -1,4 +1,4 @@
class Admin::ZonefileSettingsController < ApplicationController
class Admin::ZonefileSettingsController < AdminController
load_and_authorize_resource
before_action :set_zonefile_setting, only: [:update, :edit]
def index

View file

@ -1,4 +1,9 @@
class AdminController < ApplicationController
layout 'admin/application'
before_action :authenticate_user!
helper_method :head_title_sufix
def head_title_sufix
t(:admin_head_title_sufix)
end
end

View file

@ -8,4 +8,9 @@ class RegistrarController < ApplicationController
def depp_controller?
false
end
helper_method :head_title_sufix
def head_title_sufix
t(:registrar_head_title_sufix)
end
end