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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db49713492eb25a79ee18c60733245342ecb6c63
4
- data.tar.gz: ed57c2bf6460d42f0bd7a3948e3d017a9315451f
3
+ metadata.gz: 5817863cad4e746bee07c1e955669653071c9745
4
+ data.tar.gz: 7c3b965765d7d91a3af14f179680da00bbe3c3aa
5
5
  SHA512:
6
- metadata.gz: 7d43cbe8c8f1f0ba73bec02042b245703941efbae77a478cfe11a5e7f38a7b80a6a61f8ba58c5440264baa4128315d77e0165b64aa568f61b8924a2a750fd0d3
7
- data.tar.gz: e24a08485707b6fb367a0347ccb75b757e1327c034ba8acb79e65eeae1bb9519e61785ca7981cfdf9e417edf2fa00fd3213e25a8b4f56b6e0d684b4bdef8d78c
6
+ metadata.gz: b4cbb196124b509fd54f035aa8d6b0deb82b09d156dd04938f4e6c8a693f0e8d95ee75db4a36ddde3bd4252b0734fb9b7406be8bf16c7c283934904e746887b2
7
+ data.tar.gz: 3ef9238abadb235368ce0d773a899edda29a5e8621f0a193bdee5d81319dcb38a9cea4a16145f1c07f649247d417776965f4da991ba76a0ab4314243a0278af0
@@ -1,6 +1,6 @@
1
1
  ## Twitter Bootstrap Components Helper
2
2
 
3
- Provides an `accordion` helper and a `tabs` helper
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
- footer = content_tag(:div, class: 'modal-footer') do
13
- builder.footer_content || content_tag(:a, 'Cancel', class: 'btn pull-right', data: {dismiss: 'modal'})
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-components-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Schneider