Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Killed some lines.

  • Loading branch information...
commit 6417e1af6c445ec3933b1c5255eedaa413d18c53 1 parent 9041b25
Arthur Gunn authored

Showing 1 changed file with 2 additions and 10 deletions. Show diff stats Hide diff stats

  1. +2 10 app/helpers/rails_admin/application_helper.rb
12 app/helpers/rails_admin/application_helper.rb
@@ -55,11 +55,7 @@ def main_navigation
55 55 }
56 56 end.join
57 57
58   - if li_stack.present?
59   - li_stack = %{<li class='nav-header'>#{navigation_label || t('admin.misc.navigation')}</li>} + li_stack
60   - end
61   -
62   - li_stack
  58 + %{<li class='nav-header'>#{navigation_label || t('admin.misc.navigation')}</li>#{li_stack.presence}}
63 59 end.join.html_safe
64 60 end
65 61
@@ -68,11 +64,7 @@ def static_navigation
68 64 content_tag(:li, link_to(title.to_s, url, :target => '_blank'))
69 65 end.join
70 66
71   - if li_stack.present?
72   - li_stack = %{<li class='nav-header'>#{RailsAdmin::Config.navigation_static_label || t('admin.misc.navigation_static_label')}</li>} + li_stack
73   - end
74   -
75   - li_stack.html_safe
  67 + %{<li class='nav-header'>#{RailsAdmin::Config.navigation_static_label || t('admin.misc.navigation_static_label')}</li>#{li_stack.presence}}.html_safe
76 68 end
77 69
78 70 def navigation nodes_stack, nodes, level

0 comments on commit 6417e1a

Please sign in to comment.
Something went wrong with that request. Please try again.