bootstrap_leather 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1aa4c2f9daa0bcc45c984dc4cb17d217799a969
|
4
|
+
data.tar.gz: 5af654085f24fa431cdc656fa5eb0c7a95fae4f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d6f4a9a247de952f9c2fd519a9f9c0b33dd04db6d18cef93c8e64ecd7bca0f86efe9a9a3d1797d56804afb823fe68b223246b0c874e8dd63b1acfbc41be390
|
7
|
+
data.tar.gz: cf4cd204f60e7d8bfc7958c6b6f3a145492258bad611e99916d659f070aad57e093baab4f6a8226469e47a348bed3609d63890f8335a6ea806d12a61e48d320f
|
data/README.rdoc
CHANGED
@@ -96,7 +96,7 @@ To render the ones you have saved up:
|
|
96
96
|
|
97
97
|
=== Navbars
|
98
98
|
|
99
|
-
:container_mode is optional and defaults to :none. Can be one of: [:none, :
|
99
|
+
:container_mode is optional and defaults to :none. Can be one of: [:none, :inside, :outside]
|
100
100
|
For a wide navbar, try this:
|
101
101
|
|
102
102
|
= navbar :container_mode => :with, :class => 'navbar-inverse' do
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.6
|
@@ -78,7 +78,9 @@ module BootstrapLeatherHelper
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def navbar(html_options = {}, &block)
|
81
|
-
|
81
|
+
container_mode = html_options[:container_mode]
|
82
|
+
html_options[:container_mode] = nil
|
83
|
+
render(:partial => 'bootstrap_leather/navbar', :locals => { :block => capture(&block), :html_options => html_options, :container_mode => container_mode })
|
82
84
|
end
|
83
85
|
|
84
86
|
def navbar_with_container(html_options = {}, &block)
|
@@ -1,2 +1,2 @@
|
|
1
|
-
= image_tag BootstrapLeather.configuration.application_logo
|
1
|
+
= image_tag BootstrapLeather.configuration.application_logo, class: 'logo'
|
2
2
|
= BootstrapLeather.configuration.application_title
|
@@ -1,41 +1,34 @@
|
|
1
|
-
- container_mode = html_options[:container_mode]
|
2
|
-
- html_options[:container_mode] = nil
|
3
|
-
|
4
1
|
- case container_mode
|
5
|
-
- when :with
|
6
|
-
%nav.navbar.navbar-default
|
2
|
+
- when :with, :inside
|
3
|
+
%nav.navbar.navbar-default{ html_options }
|
7
4
|
.container
|
8
|
-
.
|
9
|
-
.
|
10
|
-
.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
= block
|
20
|
-
- when :in
|
5
|
+
.navbar-header
|
6
|
+
%button.navbar-toggle.collapsed{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
|
7
|
+
%span.sr-only
|
8
|
+
Toggle navigation
|
9
|
+
%span.icon-bar
|
10
|
+
%span.icon-bar
|
11
|
+
%span.icon-bar
|
12
|
+
= link_to logo_and_title, BootstrapLeather.configuration.application_path, :class => 'navbar-brand'
|
13
|
+
.collapse.navbar-collapse#navbar-to-collapse
|
14
|
+
= block
|
15
|
+
- when :in, :outside
|
21
16
|
.container
|
22
|
-
.
|
23
|
-
.
|
24
|
-
%
|
25
|
-
.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
.collapse.navbar-collapse#navbar-to-collapse
|
34
|
-
= block
|
17
|
+
%nav.navbar.navbar-default{ html_options }
|
18
|
+
.navbar-header
|
19
|
+
%button.navbar-toggle.collapsed{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
|
20
|
+
%span.sr-only
|
21
|
+
Toggle navigation
|
22
|
+
%span.icon-bar
|
23
|
+
%span.icon-bar
|
24
|
+
%span.icon-bar
|
25
|
+
= link_to logo_and_title, BootstrapLeather.configuration.application_path, :class => 'navbar-brand'
|
26
|
+
.collapse.navbar-collapse#navbar-to-collapse
|
27
|
+
= block
|
35
28
|
- else
|
36
|
-
%nav.navbar.navbar-default
|
29
|
+
%nav.navbar.navbar-default{ html_options }
|
37
30
|
.navbar-header
|
38
|
-
%button.navbar-toggle{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
|
31
|
+
%button.navbar-toggle.collapsed{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
|
39
32
|
%span.sr-only
|
40
33
|
Toggle navigation
|
41
34
|
%span.icon-bar
|
data/bootstrap_leather.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: bootstrap_leather 0.5.
|
5
|
+
# stub: bootstrap_leather 0.5.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bootstrap_leather"
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.6"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Karen Lundgren"]
|
14
|
-
s.date = "2015-05-
|
14
|
+
s.date = "2015-05-21"
|
15
15
|
s.description = "BootstrapLeather is a collection of view helpers that makes it easier to create apps using Twitter Bootstrap"
|
16
16
|
s.email = "karen.e.lundgren@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_leather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen Lundgren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|