bootstrap-components-helpers 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +5 -1
- data/lib/bootstrap-components-helpers/modal_helper.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5817863cad4e746bee07c1e955669653071c9745
|
4
|
+
data.tar.gz: 7c3b965765d7d91a3af14f179680da00bbe3c3aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4cbb196124b509fd54f035aa8d6b0deb82b09d156dd04938f4e6c8a693f0e8d95ee75db4a36ddde3bd4252b0734fb9b7406be8bf16c7c283934904e746887b2
|
7
|
+
data.tar.gz: 3ef9238abadb235368ce0d773a899edda29a5e8621f0a193bdee5d81319dcb38a9cea4a16145f1c07f649247d417776965f4da991ba76a0ab4314243a0278af0
|
data/README.markdown
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Twitter Bootstrap Components Helper
|
2
2
|
|
3
|
-
Provides
|
3
|
+
Provides view helpers for **accordion**, **tabs** and **modal** Twitter Bootstrap components.
|
4
4
|
|
5
5
|
In your Gemfile:
|
6
6
|
|
@@ -46,6 +46,10 @@ In your Gemfile:
|
|
46
46
|
- modal.body do
|
47
47
|
Inside the modal
|
48
48
|
|
49
|
+
`modal` method options :
|
50
|
+
|
51
|
+
- `:skip_footer` : when you don't want a footer at all for your modal.
|
52
|
+
|
49
53
|
### Contributors
|
50
54
|
|
51
55
|
- Graham Torn
|
@@ -9,8 +9,10 @@ module BootstrapComponentsHelpers
|
|
9
9
|
content_tag(:a, '×', class: 'close', data: {dismiss: 'modal'}) + content_tag(:h3, title)
|
10
10
|
end
|
11
11
|
body = content_tag(:div, class: 'modal-body') {builder.body_content}
|
12
|
-
|
13
|
-
|
12
|
+
unless options[:skip_footer]
|
13
|
+
footer = content_tag(:div, class: 'modal-footer') do
|
14
|
+
builder.footer_content || content_tag(:a, 'Cancel', class: 'btn pull-right', data: {dismiss: 'modal'})
|
15
|
+
end
|
14
16
|
end
|
15
17
|
header + body + footer
|
16
18
|
end
|