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 +4 -4
- data/app/assets/javascripts/redmine_extensions/easy_togglers.js +12 -4
- data/lib/generators/redmine_extensions/entity/templates/_sidebar.html.erb.erb +2 -2
- data/lib/generators/redmine_extensions/entity/templates/show.html.erb.erb +1 -1
- data/lib/redmine_extensions/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dae35cf1688bbeec5af825fe60a8b5ed1d12000e5e23759be72bb4eb5435126
|
4
|
+
data.tar.gz: 94338355d5d639563b74e339a50d14e34b75e3214cdd461bd092f010370ae940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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>
|
@@ -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,
|
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? %>
|
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.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:
|
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.
|
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/
|
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
|