interview 0.3.2 → 0.3.3

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: b6ce12303981ae1c515320cf9ff11bdfb047fb99
4
- data.tar.gz: 068fc3c411837109e3c197a9ceb384f8dec08189
3
+ metadata.gz: f2458fdd68a797fee79d46ad9bb529890e9d7f19
4
+ data.tar.gz: d7bec377bd917a002bbb0326e443883fd2ec6268
5
5
  SHA512:
6
- metadata.gz: 29de9c9ec99d4a255f4242274dce06c21e44e5666c018f5173c4ff4c00a82d88b37c05689e8af2644df7eade042ee7e1e4a453a313d25f442d1d20dbea1b4db2
7
- data.tar.gz: ed6849f2def31dbe028842e0b8d0c5ed362275713c9798437b1e8b403acee7525954732df5555d29c89e6bee0d32c2be331bb62d68fd72ad2f835a42b36c9144
6
+ metadata.gz: 38f0b304410531da5242f822c4087fc89d4eb30d63c1113d2c4373d315fc2fff80d5ddecde5cc3cc247586a5e8b902287e0a2535288fc053d08d2cd4056f385e
7
+ data.tar.gz: 1c0567162939920f1da2ca45503b94ad8ca3b3848a6c4a6115d02d535b439c0bc65c8ef5a1e345e50e8dbc1d9ded98c378b03eb4ca3f743502b3d63fcb73d77e
@@ -12,14 +12,15 @@ module Interview
12
12
 
13
13
  b.section html_class: 'image-gallery' do
14
14
  images.each do |image|
15
- b.link url: image.send(submethod).url(@light_box_image_style), html_class: 'img-link' do
15
+ b.link url: image.send(submethod).url(@light_box_image_style), html_class: 'img-link',
16
+ html_options: { title: image.subtitle } do
16
17
  b << h.image_tag(image.send(submethod).url(image_style), class: 'img-thumb')
17
18
  end
18
19
  end
19
20
  end
20
21
  end
21
22
 
22
- def build_write(b)
23
+ def build_write(b) # todo: delete
23
24
  object = @object || find_attribute(:object)
24
25
  submethod = @submethod || 'attachment'
25
26
  image_style = @image_style || :thumb
@@ -3,13 +3,13 @@ module Interview
3
3
 
4
4
  def build(b)
5
5
  b.section html_class: 'blueimp-gallery', html_options: { id: 'blueimp-gallery' } do
6
- b.section html_class: "slides"
7
- b.section html_class: "title"
8
- b.text text: '‹', style: 'a', html_class: "prev"
9
- b.text text: '›', style: 'a', html_class: "next"
10
- b.text text: '×', style: 'a', html_class: "close"
11
- b.text style: 'a', html_class: "play-pause"
12
- b.section style: 'ol', html_class: "indicator"
6
+ b.section html_class: 'slides'
7
+ b.section style: 'h3', html_class: 'title'
8
+ b.text text: '‹', style: 'a', html_class: 'prev'
9
+ b.text text: '›', style: 'a', html_class: 'next'
10
+ b.text text: '×', style: 'a', html_class: 'close'
11
+ b.text style: 'a', html_class: 'play-pause'
12
+ b.section style: 'ol', html_class: 'indicator'
13
13
  end
14
14
  end
15
15
 
@@ -5,7 +5,7 @@ module Interview
5
5
  assoc_object = find_attribute! :assoc_object
6
6
  assoc_method = find_attribute!(:assoc_method).to_s
7
7
  text = h.t('views.nested_form_remove', association: assoc_object.class.human_attribute_name(assoc_method.singularize)) # todo: in view auslagern
8
- b.link caption: text, url: '#', class: 'nested_form_remove_link'
8
+ b.link caption: text, url: '#', html_class: 'nested_form_remove_link'
9
9
  end
10
10
 
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Interview
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannes Köhler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-12 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler