From f407dfefffa2f0c2ea6b2f559e323d4d659436ba Mon Sep 17 00:00:00 2001 From: Jan Schulz-Hofen Date: Sun, 8 Jan 2017 10:54:05 +0100 Subject: [PATCH 1/7] [oauth] Use named routes in base layout and account sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The layout change is necessary for Doorkeeper and possibly other plugins/engines which would like to use Redmine’s base layout in a namespaced controller. Change in the account sidebar is so we can re-use it for the list of authorized applications. --- app/views/layouts/base.html.erb | 6 +++--- app/views/my/_sidebar.html.erb | 2 +- config/routes.rb | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index d6c76c41c..39f219390 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -26,7 +26,7 @@ <% if User.current.logged? || !Setting.login_required? %>