conjoin 0.0.42 → 0.0.43

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: 5b8fe1fb0df0922cd0b7fde98814e6737187976f
4
- data.tar.gz: b23cfcfb5ce9bbe689ab4f8a5554033676124d22
3
+ metadata.gz: 9092ecaac5ebcd75dd307a052740115c9f6071b5
4
+ data.tar.gz: 758e1c54cb17dbe31f90004982048b38de3b6853
5
5
  SHA512:
6
- metadata.gz: 8c87691cd7df1d4e09f2f3fd0fe2ab2931c0402cbc4d14f250c724278fceae19b97ea385d6f4b798c6d23270925f0aa41a48fec7e8224e7b990bb6e22072870b
7
- data.tar.gz: 0f54963f166ebbfb0523ab0dd54e408d81d3e11751551eb257cff1c2b7d619eaa1adfd458249168069470f1a0940695558ec0ab1722df889057a63d98704e6f2
6
+ metadata.gz: 08a40c6b3288a964a6c15f15bf5bae504fb577f9a7fa96fc00d406e156abd700b4c3654e5a1d578f8846fc516d79c3849090b650bda99c8f6199036e882f4641
7
+ data.tar.gz: 53056de6bd092194d0c49f8b2e9327c95fdfd1bcc4da46552364c2bc0b128ad69d1b0485b8e5887b4b79d8eb9ebda982b5a1ead72e24635feec5231b2d709085
@@ -4,7 +4,25 @@ module Conjoin
4
4
  def display
5
5
  options[:date] = true
6
6
  options[:value] = R18n.l options[:value]
7
- super
7
+
8
+ append_button = options.delete :append_button
9
+
10
+ content = super
11
+
12
+ if append_button
13
+ content = mab do
14
+ div class: 'input-group' do
15
+ text! content
16
+ div class: 'input-group-btn' do
17
+ button class: 'btn btn-primary', type: append_button[:type] || 'button', 'on-click-get' => append_button[:href] do
18
+ text append_button[:text]
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ content
8
26
  end
9
27
  end
10
28
  end
@@ -1,3 +1,3 @@
1
1
  module Conjoin
2
- VERSION = "0.0.42"
2
+ VERSION = "0.0.43"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.42
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-07 00:00:00.000000000 Z
11
+ date: 2014-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba