redmine_extensions 0.4.0 → 0.4.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c323b631909b06ccb6639635fe5a455377bb3bc52d32697219ee719af6703cb8
|
4
|
+
data.tar.gz: 95b3915e35e038289454287eea645278fd50aa4a082c1d8e73fd58444aabc9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ce72eaddf0dfb74b725161d5f10be15f14811bd0c10d7c393e4cb7d94bfe9e5270e2a04e51a0c26a72868ec6ffc69b014d2fe270423d4ba5a4b2a2dc5e43a4
|
7
|
+
data.tar.gz: 7f3472c8c33946ebcf5a174528bc7413b1e5a1c118f369a345fdbd69a74ea4b5840da6a22aa663948758d7d8e4cdb76ea7f5b24ae0b336bb83b62ad3cd417df8
|
@@ -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
|
-
|
50
|
-
|
51
|
-
|
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
|
-
<%%
|
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>
|
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.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Easy Software Ltd
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -196,7 +196,7 @@ homepage: https://www.easyredmine.com
|
|
196
196
|
licenses:
|
197
197
|
- GPL-2.0
|
198
198
|
metadata: {}
|
199
|
-
post_install_message:
|
199
|
+
post_install_message:
|
200
200
|
rdoc_options: []
|
201
201
|
require_paths:
|
202
202
|
- lib
|
@@ -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.
|
215
|
-
signing_key:
|
214
|
+
rubygems_version: 3.3.11
|
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/
|
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
|