gui_foldable_content 0.0.4 → 0.0.5

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: 5d969a29117e6289847292d7de4de764d0c3041f
4
- data.tar.gz: 5c9758d210d10fe7bc623478f09e36bf27cae16d
3
+ metadata.gz: 5e220d667def99350bd0f292f809dd3518be9931
4
+ data.tar.gz: 1645bfc6aa5682f64acbca1b1cd5c28ee0430d3e
5
5
  SHA512:
6
- metadata.gz: 1f27539789819fa7cba273cd7e6f2d7247a43982b467baca0fa7e3b677699e6543e62e3772a0bd139b584463eb9fcfa10d1980ace44cd327a8c251eb51a85271
7
- data.tar.gz: 2808e0c6cb2e2fe32e0bd30454a4950461c659ddf5bf6ab6e13c613177008d104741ae47d2d67ac6e457a9e8d7de3a9f4226e4c81a9f81b9cd8d4ba667981c96
6
+ metadata.gz: 06067ae4299ac24b16b252cc1853ccfe2de36b2afcc89a214832aeb2b43e5dae57c1ceceef6f7f2e615af79b0ab66801d735f23271a0baa8c3c960557c381332
7
+ data.tar.gz: e96ec5a725945d4b2d0fdd455c1ffae3f646b1def9c597131e8a9916b52baef462898ea173c889d4420bfba89c4dc4c809857cfcf59301668121204ae30dd088
@@ -1,5 +1,5 @@
1
1
  <div class="gui_foldable_area" data-default_foldable_state="<%= _default_state %>">
2
- <<%= _title_tag %> class="gui_foldable_area_title" onclick="toggle_gui_foldable_content(this);" style="cursor:pointer;"><%= _title %>&nbsp;<span class="gui_foldable_indicator_open"><%= _open_indicator %></span><span class="gui_foldable_indicator_close" ><%= _close_indicator %></span></<%= _title_tag %>>
2
+ <<%= _title_tag %> class="gui_foldable_area_title" onclick="toggle_gui_foldable_content(this);" style="cursor:pointer;"><%= _title %>&nbsp;<%= _open_indicator %><%= _close_indicator %></<%= _title_tag %>>
3
3
  <div class="gui_foldable_content" data-foldable_state="<%= _default_state %>">
4
4
  <%= _content %>
5
5
  </div>
@@ -1,3 +1,3 @@
1
1
  module GuiFoldableContent
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,7 +1,8 @@
1
1
  module GuiFoldableContent
2
2
  module ViewHelpers
3
3
  def create_foldable_area(title: , title_tag: "h3", default_state: false, close_indicator: GuiFoldableContent.configuration.default_close_indicator, open_indicator: GuiFoldableContent.configuration.default_open_indicator )
4
- render partial: 'gui_foldable_content/foldable_content', locals: { _title_tag: title_tag, _title: title, _default_state: default_state, _content: capture { yield }, _close_indicator: close_indicator , _open_indicator: open_indicator }
4
+
5
+ render partial: 'gui_foldable_content/foldable_content', locals: { _title_tag: title_tag, _title: title, _default_state: default_state, _content: capture { yield }, _close_indicator: simple_format(close_indicator, {class: 'gui_foldable_indicator_close'}, wrapper_tag: "span" ) , _open_indicator: simple_format(open_indicator, { class: 'gui_foldable_indicator_open'}, wrapper_tag: "span") }
5
6
  end
6
7
  end
7
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gui_foldable_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Benkel