From 1aa477ac2f0e9195497899691bb5cc16a7034c01 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 12 Mar 2016 19:46:06 +0100 Subject: Customized more doorkeeper views, only logged in users can create oauth apps --- app/helpers/application_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/helpers') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e683d9f51..18aec6dbe 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -11,4 +11,8 @@ module ApplicationHelper def local_id?(id) id.start_with?("tag:#{Rails.configuration.x.local_domain}") end + + def active_nav_class(path) + current_page?(path) ? 'active' : '' + end end -- cgit