about summary refs log tree commit diff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-12 19:46:06 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-12 19:46:06 +0100
commit1aa477ac2f0e9195497899691bb5cc16a7034c01 (patch)
treec331188d6955cbdd12e78bc6ccdb2329b5dddf67 /app/helpers/application_helper.rb
parentaab9f57e369c492bad03bcf15411394897314b4d (diff)
Customized more doorkeeper views, only logged in users can create oauth apps
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
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