redmine_extensions 0.4.1 → 0.4.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
  SHA256:
3
- metadata.gz: a5473a3520201d93aaa40645dfdc8bd03536e93286e8d7a5bccc08cf0fbc8006
4
- data.tar.gz: cd979b19e9ea1e35a274d45ba6f2fa09ade3f15cf1e31d2743ac210249e4a873
3
+ metadata.gz: 1dae35cf1688bbeec5af825fe60a8b5ed1d12000e5e23759be72bb4eb5435126
4
+ data.tar.gz: 94338355d5d639563b74e339a50d14e34b75e3214cdd461bd092f010370ae940
5
5
  SHA512:
6
- metadata.gz: 9aa3d665971ad245e8f415bab96c438341309d7c3cd4a14c1a0a81e52c13bd5b9581d66983b8efa9d7a071201ca2945611350d83a322eb80fb36fbe082ac800b
7
- data.tar.gz: 970f4328576c02b5193d61fd661ffe6ad21a01c54f07a539e8fde5e762a25ee8e6d98e1843019dea18769672fe353051aa42699e53df17639960b8aced0b0251
6
+ metadata.gz: 3c1f6057b2d1aa1dc5827dfec676bc0b8cfb888b8f1154b5e4ecaf77392cfda67e053477f9410a119f0129deeea6666de9649f84799eb33e64117f789c29f935
7
+ data.tar.gz: 51d77d57dd4176d44230eb925e3ce830fd6b9f615991dee0856d040cc0e9f09c18d0819849996d06c83aa50033e880d9f741b1919f8f6b982aa7c973276fa056
@@ -46,10 +46,18 @@ window.EasyToggler = new function() {
46
46
  var list = document.querySelectorAll('*[data-toggle]');
47
47
  for (var i = 0; i < list.length; ++i) {
48
48
  var item = list.item(i);
49
- var container = document.getElementById(item.dataset.toggle);
50
- if (!!storage[item.dataset.toggle]) {
51
- toggle(container);
52
- }
49
+ window.EasyToggler.ensureToggleItem(item);
50
+ }
51
+ return this;
52
+ };
53
+
54
+ /**
55
+ * @param {HTMLElement} item
56
+ */
57
+ this.ensureToggleItem = function(item) {
58
+ var container = document.getElementById(item.dataset.toggle);
59
+ if (!!storage[item.dataset.toggle]) {
60
+ toggle(container);
53
61
  }
54
62
  return this;
55
63
  };
@@ -2,8 +2,8 @@
2
2
  <%% if @<%= model_name_underscored %> && !@<%= model_name_underscored %>.new_record? %>
3
3
  <%%= content_tag(:li, link_to(l(:button_edit), edit_polymorphic_path([@project, @<%= model_name_underscored %>]), title: l(:button_edit), class: 'icon icon-edit button')) %>
4
4
  <%% end %>
5
- <%% if @<%= model_name_underscored %>.nil? %>
6
- <%%= content_tag(:li, link_to(l(:button_<%= model_name_underscored %>_new), new_polymorphic_path([@project, :<%= model_name_underscored %>]), title: l(:title_<%= model_name_underscored %>_new), class: 'icon icon-add button button-positive'))
5
+ <%% unless @<%= model_name_underscored %> %>
6
+ <%%= content_tag(:li, link_to(l(:button_<%= model_name_underscored %>_new), new_polymorphic_path([@project, :<%= model_name_underscored %>]), title: l(:title_<%= model_name_underscored %>_new), class: 'icon icon-add button button-positive')) %>
7
7
  <%% end %>
8
8
  <%%= content_tag(:li, link_to(l(:label_<%= model_name_pluralize_underscored %>), polymorphic_path([@project, :<%= model_name_pluralize_underscored %>], set_filter: '1'), title: l(:label_<%= model_name_pluralize_underscored %>), class: 'icon icon-folder button')) %>
9
9
  </ul>
@@ -24,7 +24,7 @@
24
24
  <hr />
25
25
  <%%= render partial: 'redmine_extensions/custom_field_rows', locals: { custom_field_values: @<%= model_name_underscored %>.visible_custom_field_values } %>
26
26
  <%- end -%>
27
- <%%= call_hook(:view_<%= model_name_pluralize_underscored %>_show_details_bottom, :<%= model_name_underscored%>: @<%= model_name_underscored %>) %>
27
+ <%%= call_hook(:view_<%= model_name_pluralize_underscored %>_show_details_bottom, <%= model_name_underscored%>: @<%= model_name_underscored %>) %>
28
28
  </table>
29
29
  <%- if description_column? -%>
30
30
  <%% if !@<%= model_name_underscored %>.<%= description_column %>.blank? %>
@@ -1,3 +1,3 @@
1
1
  module RedmineExtensions
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Easy Software Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2022-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -211,17 +211,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubygems_version: 3.0.8
214
+ rubygems_version: 3.2.33
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: Redmine Extensions is set of usefull features for Redmine. Main focus is
218
218
  on development helpers, but many users can find it helpfull
219
219
  test_files:
220
- - spec/spec_helper.rb
221
- - spec/init_rails.rb
222
- - spec/features/jasmine_spec.rb
220
+ - spec/factories/easy_settings.rb
223
221
  - spec/features/autocomplete_spec.rb
222
+ - spec/features/jasmine_spec.rb
223
+ - spec/init_rails.rb
224
224
  - spec/models/easy_setting_spec.rb
225
225
  - spec/presenters/easy_settings/params_wrapper_spec.rb
226
+ - spec/spec_helper.rb
226
227
  - spec/support/plugin_generator.rb
227
- - spec/factories/easy_settings.rb