rails_bootstrap_easy_navbar 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,7 @@ module RailsBootstrapEasyNavbar
|
|
18
18
|
|
19
19
|
# Creates the navbar wrapper optionally containing a brand on the left hand side
|
20
20
|
def navbar_inner(current_tab, nav_items, options={})
|
21
|
+
contents = []
|
21
22
|
unless nav_items.blank?
|
22
23
|
#create responsive collapsible layout if requested
|
23
24
|
contents = [
|
@@ -31,8 +32,8 @@ module RailsBootstrapEasyNavbar
|
|
31
32
|
|
32
33
|
#create brand
|
33
34
|
if options[:brand]
|
34
|
-
|
35
|
-
|
35
|
+
options[:brand_path] ||= DEFAULT_BRAND_PATH
|
36
|
+
contents.insert(0, (content_tag(:a, options[:brand], href: options[:brand_path], class: "brand")))
|
36
37
|
end
|
37
38
|
|
38
39
|
#inject raw html if requested
|