redmineup 1.1.1 → 1.1.18

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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitlab-ci.yml +7 -18
  4. data/README.md +74 -153
  5. data/Rakefile +1 -1
  6. data/app/assets/images/icons.svg +9 -0
  7. data/app/assets/javascripts/consumer.js +37 -50
  8. data/app/assets/javascripts/consumer_worker.js +219 -0
  9. data/app/assets/javascripts/jquery.colorPicker.min.js +26 -0
  10. data/app/assets/javascripts/select2_helpers.js +12 -0
  11. data/app/assets/stylesheets/calendars.css +0 -3
  12. data/app/assets/stylesheets/redmineup.css +520 -0
  13. data/app/assets/stylesheets/select2.css +2 -2
  14. data/app/views/redmineup/_additional_assets.html.erb +1 -0
  15. data/app/views/redmineup/journals/_history.html.erb +33 -0
  16. data/config/locales/ar.yml +13 -0
  17. data/config/locales/az.yml +13 -0
  18. data/config/locales/bg.yml +13 -0
  19. data/config/locales/bs.yml +13 -0
  20. data/config/locales/ca.yml +13 -0
  21. data/config/locales/cs.yml +1 -0
  22. data/config/locales/da.yml +13 -0
  23. data/config/locales/de.yml +1 -0
  24. data/config/locales/el.yml +13 -0
  25. data/config/locales/en-GB.yml +14 -0
  26. data/config/locales/en.yml +1 -0
  27. data/config/locales/es-PA.yml +14 -0
  28. data/config/locales/es.yml +1 -0
  29. data/config/locales/et.yml +13 -0
  30. data/config/locales/eu.yml +13 -0
  31. data/config/locales/fa.yml +13 -0
  32. data/config/locales/fi.yml +13 -0
  33. data/config/locales/fr.yml +13 -0
  34. data/config/locales/gl.yml +13 -0
  35. data/config/locales/he.yml +13 -0
  36. data/config/locales/hr.yml +13 -0
  37. data/config/locales/hu.yml +13 -0
  38. data/config/locales/id.yml +13 -0
  39. data/config/locales/it.yml +13 -0
  40. data/config/locales/ja.yml +13 -0
  41. data/config/locales/ko.yml +13 -0
  42. data/config/locales/lt.yml +13 -0
  43. data/config/locales/lv.yml +13 -0
  44. data/config/locales/mk.yml +13 -0
  45. data/config/locales/mn.yml +13 -0
  46. data/config/locales/nl.yml +13 -0
  47. data/config/locales/no.yml +13 -0
  48. data/config/locales/pl.yml +13 -0
  49. data/config/locales/pt-BR.yml +13 -0
  50. data/config/locales/pt.yml +13 -0
  51. data/config/locales/ro.yml +13 -0
  52. data/config/locales/ru.yml +2 -1
  53. data/config/locales/sk.yml +13 -0
  54. data/config/locales/sl.yml +13 -0
  55. data/config/locales/sq.yml +13 -0
  56. data/config/locales/sr-YU.yml +13 -0
  57. data/config/locales/sr.yml +13 -0
  58. data/config/locales/sv.yml +13 -0
  59. data/config/locales/ta-IN.yml +13 -0
  60. data/config/locales/th.yml +13 -0
  61. data/config/locales/tr.yml +13 -0
  62. data/config/locales/uk.yml +13 -0
  63. data/config/locales/vi.yml +13 -0
  64. data/config/locales/zh-TW.yml +13 -0
  65. data/config/locales/zh.yml +13 -0
  66. data/config/routes.rb +4 -0
  67. data/doc/CHANGELOG +119 -24
  68. data/doc/active-record-mixins.md +156 -0
  69. data/doc/assets-money-and-utilities.md +71 -0
  70. data/doc/tagging-and-select2.md +115 -0
  71. data/lib/action_cable/connection/rup_connection.rb +17 -0
  72. data/lib/action_cable/server/rup_configuration.rb +1 -9
  73. data/lib/action_cable/server/rup_server.rb +8 -0
  74. data/lib/redmineup/acts_as_journalized/hook.rb +16 -0
  75. data/lib/redmineup/acts_as_journalized/journal_event.rb +30 -0
  76. data/lib/redmineup/acts_as_journalized/journal_patch.rb +87 -0
  77. data/lib/redmineup/acts_as_journalized/up_acts_as_journalized.rb +118 -0
  78. data/lib/redmineup/acts_as_taggable/tag.rb +13 -3
  79. data/lib/redmineup/acts_as_taggable/up_acts_as_taggable.rb +36 -28
  80. data/lib/redmineup/acts_as_viewed/up_acts_as_viewed.rb +8 -3
  81. data/lib/redmineup/currency/formatting.rb +1 -0
  82. data/lib/redmineup/engine.rb +14 -2
  83. data/lib/redmineup/helpers/datetime_helper.rb +23 -0
  84. data/lib/redmineup/helpers/external_assets_helper.rb +14 -6
  85. data/lib/redmineup/helpers/form_tag_helper.rb +44 -0
  86. data/lib/redmineup/helpers/journals_helper.rb +53 -0
  87. data/lib/redmineup/helpers/tags_helper.rb +108 -0
  88. data/lib/redmineup/helpers/test_helper.rb +12 -0
  89. data/lib/redmineup/hooks/views_layouts_hook.rb +1 -5
  90. data/lib/redmineup/money_helper.rb +10 -2
  91. data/lib/redmineup/patches/action_cable_base_patch.rb +13 -8
  92. data/lib/redmineup/patches/action_cable_patch.rb +3 -7
  93. data/lib/redmineup/patches/auto_completes_controller_patch.rb +17 -0
  94. data/lib/redmineup/patches/compatibility/routing_mapper_patch.rb +5 -18
  95. data/lib/redmineup/patches/compatibility/sprite_patch.rb +3 -9
  96. data/lib/redmineup/patches/compatibility_patch.rb +0 -6
  97. data/lib/redmineup/patches/liquid_patch.rb +13 -22
  98. data/lib/redmineup/version.rb +1 -1
  99. data/lib/redmineup.rb +38 -41
  100. data/redmineup.gemspec +1 -1
  101. data/test/acts_as_journalized/up_acts_as_journalized_test.rb +106 -0
  102. data/test/acts_as_taggable/tag_test.rb +12 -9
  103. data/test/acts_as_viewed/rup_acts_as_viewed_test.rb +12 -0
  104. data/test/currency_test.rb +7 -0
  105. data/test/locales_test.rb +12 -0
  106. data/test/models/journal.rb +38 -0
  107. data/test/models/journalized_thing.rb +5 -0
  108. data/test/redmine/acts_as_journalized/journalized_redmine_test.rb +264 -0
  109. data/test/schema.rb +18 -1
  110. data/test/tags_helper_view_test.rb +111 -0
  111. data/test/test_helper.rb +13 -12
  112. metadata +74 -5
  113. data/app/assets/stylesheets/money.css +0 -95
  114. data/lib/redmineup/patches/compatibility/application_controller_patch.rb +0 -32
  115. data/lib/redmineup/patches/compatibility/user_patch.rb +0 -21
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Really Simple Color Picker in jQuery
3
+ *
4
+ * Licensed under the MIT (MIT-LICENSE.txt) licenses.
5
+ *
6
+ * Copyright (c) 2008-2012
7
+ * Lakshan Perera (www.laktek.com) & Daniel Lacy (daniellacy.com)
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ * of this software and associated documentation files (the "Software"), to
11
+ * deal in the Software without restriction, including without limitation the
12
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
13
+ * sell copies of the Software, and to permit persons to whom the Software is
14
+ * furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in
17
+ * all copies or substantial portions of the Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25
+ * IN THE SOFTWARE.
26
+ */(function(a){var b,c,d=0,e={control:a('<div class="colorPicker-picker">&nbsp;</div>'),palette:a('<div id="colorPicker_palette" class="colorPicker-palette" />'),swatch:a('<div class="colorPicker-swatch">&nbsp;</div>'),hexLabel:a('<label for="colorPicker_hex">Hex</label>'),hexField:a('<input type="text" id="colorPicker_hex" />')},f="transparent",g;a.fn.colorPicker=function(b){return this.each(function(){var c=a(this),g=a.extend({},a.fn.colorPicker.defaults,b),h=a.fn.colorPicker.toHex(c.val().length>0?c.val():g.pickerDefault),i=e.control.clone(),j=e.palette.clone().attr("id","colorPicker_palette-"+d),k=e.hexLabel.clone(),l=e.hexField.clone(),m=j[0].id,n,o;a.each(g.colors,function(b){n=e.swatch.clone(),g.colors[b]===f?(n.addClass(f).text("X"),a.fn.colorPicker.bindPalette(l,n,f)):(n.css("background-color","#"+this),a.fn.colorPicker.bindPalette(l,n)),n.appendTo(j)}),k.attr("for","colorPicker_hex-"+d),l.attr({id:"colorPicker_hex-"+d,value:h}),l.bind("keydown",function(b){if(b.keyCode===13){var d=a.fn.colorPicker.toHex(a(this).val());a.fn.colorPicker.changeColor(d?d:c.val())}b.keyCode===27&&a.fn.colorPicker.hidePalette()}),l.bind("keyup",function(b){var d=a.fn.colorPicker.toHex(a(b.target).val());a.fn.colorPicker.previewColor(d?d:c.val())}),a('<div class="colorPicker_hexWrap" />').append(k).appendTo(j),j.find(".colorPicker_hexWrap").append(l),g.showHexField===!1&&(l.hide(),k.hide()),a("body").append(j),j.hide(),i.css("background-color",h),i.bind("click",function(){c.is(":not(:disabled)")&&a.fn.colorPicker.togglePalette(a("#"+m),a(this))}),b&&b.onColorChange?i.data("onColorChange",b.onColorChange):i.data("onColorChange",function(){}),(o=c.data("text"))&&i.html(o),c.after(i),c.bind("change",function(){c.next(".colorPicker-picker").css("background-color",a.fn.colorPicker.toHex(a(this).val()))}),c.val(h);if(c[0].tagName.toLowerCase()==="input")try{c.attr("type","hidden")}catch(p){c.css("visibility","hidden").css("position","absolute")}else c.hide();d++})},a.extend(!0,a.fn.colorPicker,{toHex:function(a){if(a.match(/[0-9A-F]{6}|[0-9A-F]{3}$/i))return a.charAt(0)==="#"?a:"#"+a;if(!a.match(/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/))return!1;var b=[parseInt(RegExp.$1,10),parseInt(RegExp.$2,10),parseInt(RegExp.$3,10)],c=function(a){if(a.length<2)for(var b=0,c=2-a.length;b<c;b++)a="0"+a;return a};if(b.length===3){var d=c(b[0].toString(16)),e=c(b[1].toString(16)),f=c(b[2].toString(16));return"#"+d+e+f}},checkMouse:function(d,e){var f=c,g=a(d.target).parents("#"+f.attr("id")).length;if(d.target===a(f)[0]||d.target===b[0]||g>0)return;a.fn.colorPicker.hidePalette()},hidePalette:function(){a(document).unbind("mousedown",a.fn.colorPicker.checkMouse),a(".colorPicker-palette").hide()},showPalette:function(c){var d=b.prev("input").val();c.css({top:b.offset().top+b.outerHeight(),left:b.offset().left}),a("#color_value").val(d),c.show(),a(document).bind("mousedown",a.fn.colorPicker.checkMouse)},togglePalette:function(d,e){e&&(b=e),c=d,c.is(":visible")?a.fn.colorPicker.hidePalette():a.fn.colorPicker.showPalette(d)},changeColor:function(c){b.css("background-color",c),b.prev("input").val(c).change(),a.fn.colorPicker.hidePalette(),b.data("onColorChange").call(b,a(b).prev("input").attr("id"),c)},previewColor:function(a){b.css("background-color",a)},bindPalette:function(c,d,e){e=e?e:a.fn.colorPicker.toHex(d.css("background-color")),d.bind({click:function(b){g=e,a.fn.colorPicker.changeColor(e)},mouseover:function(b){g=c.val(),a(this).css("border-color","#598FEF"),c.val(e),a.fn.colorPicker.previewColor(e)},mouseout:function(d){a(this).css("border-color","#000"),c.val(b.css("background-color")),c.val(g),a.fn.colorPicker.previewColor(g)}})}}),a.fn.colorPicker.defaults={pickerDefault:"FFFFFF",colors:["000000","993300","333300","000080","333399","333333","800000","FF6600","808000","008000","008080","0000FF","666699","808080","FF0000","FF9900","99CC00","339966","33CCCC","3366FF","800080","999999","FF00FF","FFCC00","FFFF00","00FF00","00FFFF","00CCFF","993366","C0C0C0","FF99CC","FFCC99","FFFF99","CCFFFF","99CCFF","FFFFFF"],addColors:[],showHexField:!0}})(jQuery);
@@ -112,6 +112,7 @@ function transformToSelect2(field, options) {
112
112
  selectField.select2(buildSelect2Options(options));
113
113
 
114
114
  var select2Instance = selectField.data('select2');
115
+ if (/(_tags|tag_list)$/.test(field)) { select2Instance.$container.addClass('rup-tag-select'); }
115
116
  select2Instance.on('results:message', function(params){
116
117
  this.dropdown._resizeDropdown();
117
118
  this.dropdown._positionDropdown();
@@ -123,8 +124,10 @@ function select2Tag(id, options) {
123
124
  $(function () {
124
125
  var selectField = $('select#' + id);
125
126
  selectField.select2(buildSelect2Options(options));
127
+ bindSelectHandler(selectField, options);
126
128
 
127
129
  var select2Instance = selectField.data('select2');
130
+ if (options['tags']) { select2Instance.$container.addClass('rup-tag-select'); }
128
131
  select2Instance.on('results:message', function(params){
129
132
  this.dropdown._resizeDropdown();
130
133
  this.dropdown._positionDropdown();
@@ -133,6 +136,15 @@ function select2Tag(id, options) {
133
136
  };
134
137
 
135
138
 
139
+ function bindSelectHandler(selectField, options) {
140
+ var callbackName = options['on_select'];
141
+ if (!callbackName) { return; }
142
+ if (typeof window[callbackName] !== 'function') { return; }
143
+
144
+ selectField.on('select2:select', window[callbackName]);
145
+ }
146
+
147
+
136
148
  function buildSelect2Options(options) {
137
149
  result = {
138
150
  placeholder: options['placeholder'] || '',
@@ -10,6 +10,3 @@ table.cal td.odd p.day-num {color: #bbb;}
10
10
  table.cal td.today {background:#ffffdd;}
11
11
  table.cal td.today p.day-num {font-weight: bold;}
12
12
  table.cal td.nwday:not(.odd) {background-color:#f1f1f1;}
13
- table.cal .starting a.issue, p.cal.legend .starting {background: url(../../../images/bullet_go.png) no-repeat -1px -2px; padding-left:16px;}
14
- table.cal .ending a.issue, p.cal.legend .ending {background: url(../../../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
15
- table.cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(../../../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
@@ -0,0 +1,520 @@
1
+ /* ============================================================
2
+ SELECT2 (from select2.css)
3
+ ============================================================ */
4
+ .select2-container {
5
+ box-sizing: border-box;
6
+ display: inline-block;
7
+ margin: 0;
8
+ position: relative;
9
+ vertical-align: middle;
10
+ }
11
+ .select2-container .select2-selection--single {
12
+ box-sizing: border-box;
13
+ cursor: pointer;
14
+ display: block;
15
+ height: 28px;
16
+ user-select: none;
17
+ -webkit-user-select: none;
18
+ }
19
+ .select2-container .select2-selection--single .select2-selection__rendered {
20
+ display: block;
21
+ padding-left: 8px;
22
+ padding-right: 20px;
23
+ overflow: hidden;
24
+ text-overflow: ellipsis;
25
+ white-space: nowrap;
26
+ }
27
+ .select2-container .select2-selection--single .select2-selection__clear {
28
+ position: relative;
29
+ }
30
+ .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
31
+ padding-right: 8px;
32
+ padding-left: 20px;
33
+ }
34
+ .select2-container .select2-selection--multiple {
35
+ box-sizing: border-box;
36
+ cursor: pointer;
37
+ display: block;
38
+ min-height: 24px;
39
+ user-select: none;
40
+ -webkit-user-select: none;
41
+ }
42
+ .select2-container .select2-selection--multiple .select2-selection__rendered {
43
+ /*display: inline-block;*/
44
+ overflow: hidden;
45
+ padding-left: 8px;
46
+ text-overflow: ellipsis;
47
+ white-space: nowrap;
48
+ }
49
+ .select2-container .select2-search--inline {
50
+ float: left;
51
+ }
52
+ .select2-container .select2-search--inline .select2-search__field {
53
+ box-sizing: border-box;
54
+ border: none;
55
+ font-size: 100%;
56
+ margin-top: 2px;
57
+ padding: 0;
58
+ }
59
+ .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
60
+ -webkit-appearance: none;
61
+ }
62
+
63
+ .select2-dropdown {
64
+ background-color: white;
65
+ border: 1px solid #aaa;
66
+ border-radius: 4px;
67
+ box-sizing: border-box;
68
+ display: block;
69
+ position: absolute;
70
+ left: -100000px;
71
+ width: 100%;
72
+ z-index: 1051;
73
+ }
74
+
75
+ .select2-results {
76
+ display: block;
77
+ }
78
+
79
+ .select2-results__options {
80
+ list-style: none;
81
+ margin: 0;
82
+ padding: 0;
83
+ }
84
+
85
+ .select2-results__option {
86
+ padding: 6px;
87
+ user-select: none;
88
+ -webkit-user-select: none;
89
+ }
90
+ .select2-results__option[aria-selected] {
91
+ cursor: pointer;
92
+ }
93
+
94
+ .select2-container--open .select2-dropdown {
95
+ left: 0;
96
+ }
97
+
98
+ .select2-container--open .select2-dropdown--above {
99
+ border-bottom: none;
100
+ border-bottom-left-radius: 0;
101
+ border-bottom-right-radius: 0;
102
+ }
103
+
104
+ .select2-container--open .select2-dropdown--below {
105
+ border-top: none;
106
+ border-top-left-radius: 0;
107
+ border-top-right-radius: 0;
108
+ }
109
+
110
+ .select2-search--dropdown {
111
+ display: block;
112
+ padding: 4px;
113
+ }
114
+ .select2-search--dropdown .select2-search__field {
115
+ padding: 4px;
116
+ width: 100%;
117
+ box-sizing: border-box;
118
+ }
119
+ .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
120
+ -webkit-appearance: none;
121
+ }
122
+ .select2-search--dropdown.select2-search--hide {
123
+ display: none;
124
+ }
125
+
126
+ .select2-close-mask {
127
+ border: 0;
128
+ margin: 0;
129
+ padding: 0;
130
+ display: block;
131
+ position: fixed;
132
+ left: 0;
133
+ top: 0;
134
+ min-height: 100%;
135
+ min-width: 100%;
136
+ height: auto;
137
+ width: auto;
138
+ opacity: 0;
139
+ z-index: 99;
140
+ background-color: #fff;
141
+ filter: alpha(opacity=0);
142
+ }
143
+
144
+ .select2-hidden-accessible {
145
+ border: 0 !important;
146
+ clip: rect(0 0 0 0) !important;
147
+ height: 1px !important;
148
+ margin: -1px !important;
149
+ overflow: hidden !important;
150
+ padding: 0 !important;
151
+ position: absolute !important;
152
+ width: 1px !important;
153
+ }
154
+
155
+ .select2-container--default .select2-selection--single {
156
+ background-color: #fff;
157
+ height: 24px;
158
+ border: 1px solid #ccc;
159
+ border-radius: 3px;
160
+ }
161
+
162
+ .select2-container--default .select2-selection--single.icon {
163
+ background-position-x: 3px;
164
+ }
165
+
166
+ .select2-container--default .select2-selection--single .select2-selection__rendered {
167
+ line-height: 21px;
168
+ font-size: 12px;
169
+ }
170
+
171
+ .select2-container--default .select2-selection--single.icon .select2-selection__rendered {
172
+ padding-left: 2px
173
+ }
174
+
175
+ .select2-container--default .select2-selection--single .select2-selection__clear {
176
+ cursor: pointer;
177
+ float: right;
178
+ font-weight: normal;
179
+ color: #888;
180
+ }
181
+ .select2-container--default .select2-selection--single .select2-selection__placeholder {
182
+ color: #999;
183
+ }
184
+ .select2-container--default .select2-selection--single .select2-selection__arrow {
185
+ height: 24px;
186
+ position: absolute;
187
+ top: 0px;
188
+ right: 1px;
189
+ width: 20px;
190
+ }
191
+ .select2-container--default .select2-selection--single .select2-selection__arrow b {
192
+ border-color: #888 transparent transparent transparent;
193
+ border-style: solid;
194
+ border-width: 5px 4px 0 4px;
195
+ height: 0;
196
+ left: 50%;
197
+ margin-left: -4px;
198
+ margin-top: -2px;
199
+ position: absolute;
200
+ top: 50%;
201
+ width: 0;
202
+ }
203
+ .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
204
+ float: left;
205
+ }
206
+ .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
207
+ left: 1px;
208
+ right: auto;
209
+ }
210
+ .select2-container--default.select2-container--disabled .select2-selection--single {
211
+ background-color: #eee;
212
+ cursor: default;
213
+ }
214
+ .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
215
+ display: none;
216
+ }
217
+ .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
218
+ border-color: transparent transparent #888 transparent;
219
+ border-width: 0 4px 5px 4px;
220
+ }
221
+ .select2-container--default .select2-selection--multiple {
222
+ background-color: white;
223
+ border: 1px solid #ccc;
224
+ border-radius: 3px;
225
+ cursor: text;
226
+ }
227
+
228
+ #sidebar .select2-container--default .select2-selection--multiple .select2-selection__rendered,
229
+ .select2-container--default .select2-selection--multiple .select2-selection__rendered {
230
+ box-sizing: border-box;
231
+ list-style: none;
232
+ margin: 0;
233
+ padding: 0 2px 1px 2px;
234
+ width: 100%;
235
+ }
236
+ .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
237
+ list-style: none;
238
+ }
239
+ .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
240
+ color: #999;
241
+ margin-top: 5px;
242
+ float: left;
243
+ }
244
+ .select2-container--default .select2-selection--multiple .select2-selection__clear {
245
+ cursor: pointer;
246
+ float: right;
247
+ font-weight: bold;
248
+ margin-top: 2px;
249
+ margin-right: 2px;
250
+ }
251
+
252
+ #sidebar .select2-container--default .select2-selection--multiple .select2-selection__choice,
253
+ .select2-container--default .select2-selection--multiple .select2-selection__choice {
254
+ background-color: #efefef;
255
+ border-radius: 2px;
256
+ cursor: default;
257
+ float: left;
258
+ margin-right: 2px;
259
+ margin-top: 2px;
260
+ padding: 0 3px;
261
+ }
262
+ .rup-tag-select.select2-container--default .select2-selection--multiple .select2-selection__choice {
263
+ font-size: 0.65rem;
264
+ line-height: 1.3;
265
+ padding: 2px 4px;
266
+ }
267
+ .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
268
+ color: #aaa;
269
+ cursor: pointer;
270
+ display: inline-block;
271
+ font-weight: normal;
272
+ margin-right: 2px;
273
+ }
274
+ .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
275
+ color: #333;
276
+ }
277
+ .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
278
+ float: right;
279
+ }
280
+ .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
281
+ margin-left: 5px;
282
+ margin-right: auto;
283
+ }
284
+ .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
285
+ margin-left: 2px;
286
+ margin-right: auto;
287
+ }
288
+ .select2-container--default.select2-container--focus .select2-selection--multiple {
289
+ border: 1px solid #5ad;
290
+ outline: none;
291
+ }
292
+ .select2-container--default.select2-container--disabled .select2-selection--multiple {
293
+ background-color: #eee;
294
+ cursor: default;
295
+ }
296
+ .select2-container--default.select2-container--disabled .select2-selection__choice__remove {
297
+ display: none;
298
+ }
299
+ .select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
300
+ border-top-left-radius: 0;
301
+ border-top-right-radius: 0;
302
+ }
303
+ .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
304
+ border-bottom-left-radius: 0;
305
+ border-bottom-right-radius: 0;
306
+ }
307
+ .select2-container--default .select2-search--dropdown .select2-search__field {
308
+ border: 1px solid #aaa;
309
+ }
310
+ .select2-container--default .select2-search--inline .select2-search__field {
311
+ background: transparent;
312
+ border: none;
313
+ outline: 0;
314
+ box-shadow: none;
315
+ -webkit-appearance: textfield;
316
+ height: 18px;
317
+ }
318
+ .select2-container--default .select2-results > .select2-results__options {
319
+ max-height: 200px;
320
+ overflow-y: auto;
321
+ }
322
+ .select2-container--default .select2-results__option[role=group] {
323
+ padding: 0;
324
+ }
325
+ .select2-container--default .select2-results__option[aria-disabled=true] {
326
+ color: #999;
327
+ }
328
+ .select2-container--default .select2-results__option[aria-selected=true] {
329
+ background-color: #eee;
330
+ }
331
+ .select2-container--default .select2-results__option .select2-results__option {
332
+ padding-left: 1em;
333
+ }
334
+ .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
335
+ padding-left: 0;
336
+ }
337
+ .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
338
+ margin-left: -1em;
339
+ padding-left: 2em;
340
+ }
341
+ .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
342
+ margin-left: -2em;
343
+ padding-left: 3em;
344
+ }
345
+ .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
346
+ margin-left: -3em;
347
+ padding-left: 4em;
348
+ }
349
+ .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
350
+ margin-left: -4em;
351
+ padding-left: 5em;
352
+ }
353
+ .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
354
+ margin-left: -5em;
355
+ padding-left: 6em;
356
+ }
357
+ .select2-container--default .select2-results__option--highlighted[aria-selected] {
358
+ background-color: #eef5fd;
359
+ }
360
+ .select2-container--default .select2-results__group {
361
+ cursor: default;
362
+ display: block;
363
+ padding: 6px;
364
+ }
365
+
366
+ .filter .select2 {
367
+ margin: 1px;
368
+ min-width: 130px;
369
+ }
370
+
371
+ .filter .select2-selection--multiple .select2-search--inline .select2-search__field {
372
+ border: 0px !important;
373
+ height: inherit !important;
374
+ padding: 0px !important;
375
+ }
376
+
377
+ .filter .select2-container--default .select2-selection--multiple .select2-selection__choice {
378
+ outline: none;
379
+ border: 0px;
380
+ padding: 3px 5px;
381
+ }
382
+
383
+ /* ============================================================
384
+ TAGS
385
+ ============================================================ */
386
+
387
+ #sidebar ul.tags-cloud { list-style: none; padding: 0; }
388
+ #sidebar ul.tags-cloud li { margin: .25em 0; }
389
+
390
+ div.tags-cloud { text-align: center; }
391
+
392
+ /* .tag-label-color alone is what tag_link of gem < 1.1.16 and old plugins emit */
393
+ .tag-label, .tag-label-color {
394
+ border: 1px solid rgba(0, 0, 0, 0.2);
395
+ border-radius: 3px;
396
+ padding: 2px 4px;
397
+ display: inline-block;
398
+ font-size: 0.65rem;
399
+ line-height: 1.3;
400
+ margin: 0 2px 2px 0;
401
+ white-space: nowrap;
402
+ max-width: 100%;
403
+ box-sizing: border-box;
404
+ vertical-align: top;
405
+ }
406
+
407
+ .tag-label-color, .tag-label-color a, .tag-label-color a:link, .tag-label-color a:visited { color: #fff !important; }
408
+ .tag-label-plain { background-color: #efefef; }
409
+ .tag-label-plain, .tag-label-plain a, .tag-label-plain a:link, .tag-label-plain a:visited { color: #333 !important; }
410
+
411
+ .tag-label a, .tag-label-color a { color: inherit; text-decoration: none; font-weight: normal; }
412
+ .tag-label a:hover, .tag-label a:focus, .tag-label-color a:hover, .tag-label-color a:focus { text-decoration: none; }
413
+
414
+ .tag-label:hover, .tag-label-color:hover { filter: brightness(0.85); }
415
+
416
+ .tag-link a { font-weight: normal; }
417
+
418
+ .tag_list { margin-top: 5px; display: inline-block; }
419
+ td.tags, .tag_list { white-space: normal; }
420
+
421
+ span.tag-input { display: inline-block; }
422
+
423
+ .tabular .select2-container.rup-tag-select { max-width: 95%; }
424
+
425
+ tr.issue td.tags,
426
+ table.list tr td.tags { text-align: left; white-space: normal; }
427
+
428
+ div.tags-cloud .tag-nube-1 { font-size: .8em; }
429
+ div.tags-cloud .tag-nube-2 { font-size: .9em; }
430
+ div.tags-cloud .tag-nube-3 { font-size: 1em; }
431
+ div.tags-cloud .tag-nube-4 { font-size: 1.1em; }
432
+ div.tags-cloud .tag-nube-5 { font-size: 1.2em; }
433
+ div.tags-cloud .tag-nube-6 { font-size: 1.3em; }
434
+ div.tags-cloud .tag-nube-7 { font-size: 1.4em; }
435
+ div.tags-cloud .tag-nube-8 { font-size: 1.5em; }
436
+
437
+ .tag-label .tag-count, .tag-link .tag-count { font-size: .75em; margin-left: .5em; }
438
+
439
+ /* ===== Calendars ===== */
440
+ table.cal {width: 100%; margin: 0 0 6px 0; border: 1px solid #c0c0c0; border-spacing: 0; border-radius: 3px;}
441
+ table.cal thead th {width: 14%; background-color:#EEEEEE; padding: 4px; }
442
+ table.cal thead th.week-number {width: auto;}
443
+ table.cal tbody tr {height: 100px;}
444
+ table.cal td .icon {padding-top: 2px; padding-bottom: 3px;}
445
+ table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em; border-bottom: 0; border-right: 0;}
446
+ table.cal td.week-number { background-color:#EEEEEE; padding: 4px; border:none; font-size: 1em;}
447
+ table.cal td p.day-num {font-size: 1.1em; text-align:right;}
448
+ table.cal td.odd p.day-num {color: #bbb;}
449
+ table.cal td.today {background:#ffffdd;}
450
+ table.cal td.today p.day-num {font-weight: bold;}
451
+ table.cal td.nwday:not(.odd) {background-color:#f1f1f1;}
452
+
453
+ #admin-menu a.icon-redmineup-money:not(:has(svg)) {
454
+ background-image: url(../images/money.png);
455
+ }
456
+
457
+ ul.cal {
458
+ list-style: none;
459
+ width: 100%;
460
+ padding: 0;
461
+ display: grid;
462
+ grid-template-columns: 2rem repeat(7, 1fr);
463
+ margin: 0;
464
+ border: 1px solid #c0c0c0;
465
+ border-spacing: 0;
466
+ border-radius: 3px;
467
+ }
468
+ .cal .calhead { background-color:#eee; text-align: center; font-weight: bold; padding: 4px }
469
+ .cal .week-number { background-color:#eee; border:none; font-size: 1em; padding: 4px; text-align: center; }
470
+ .cal .week-number .label-week { display: none; }
471
+ .cal .calbody { border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em; border-bottom: 0; border-right: 0; line-height: 1.2; min-height: calc(1.2em * 6); padding: 2px; }
472
+ .cal .calbody p.day-num {font-size: 1.1em; text-align:right;}
473
+ .cal .calbody .abbr-day {display:none}
474
+ .cal .calbody.odd p.day-num {color: #bbb;}
475
+ .cal .calbody.today {background:#ffd;}
476
+ .cal .calbody.today p.day-num {font-weight: bold;}
477
+ .cal .calbody .icon {padding-top: 2px; padding-bottom: 3px;}
478
+ .cal .calbody.nwday:not(.odd) {background-color:#f1f1f1;}
479
+ @media screen and (max-width: 899px) {
480
+ ul.cal { display: block }
481
+ .cal .calhead { display: none }
482
+ .cal .calbody { min-height: calc(1.2em * 3); }
483
+ .cal .calbody .abbr-day { display: inline; }
484
+ .cal .week-number { border: 1px solid #c0c0c0; text-align: left; font-weight: bold; background-color: #def; }
485
+ .cal .week-number .label-week { display: inline; }
486
+ .cal .calbody p.day-num { font-size: 1.1em; text-align: left; }
487
+ }
488
+
489
+ /* Color picker */
490
+
491
+ div.colorPicker-picker {
492
+ height: 16px;
493
+ width: 16px;
494
+ padding: 0 !important;
495
+ border: 1px solid #ccc;
496
+ cursor: pointer;
497
+ line-height: 16px;
498
+ }
499
+
500
+ div.colorPicker-palette {
501
+ width: 200px;
502
+ position: absolute;
503
+ background-color: #fff;
504
+ border: 1px solid #ccc;
505
+ padding: 5px;
506
+ z-index: 9999;
507
+ }
508
+ div.colorPicker_hexWrap {width: 100%; float:left; padding: 5px;}
509
+ div.colorPicker_hexWrap label {font-size: 95%; color: #2F2F2F; margin: 5px 2px; width: 25%}
510
+ div.colorPicker_hexWrap input {font-size: 95%; width: 65%; }
511
+
512
+ div.colorPicker-swatch {
513
+ height: 16px;
514
+ width: 16px;
515
+ border: 1px solid #000;
516
+ margin: 2px;
517
+ float: left;
518
+ cursor: pointer;
519
+ line-height: 12px;
520
+ }
@@ -217,8 +217,8 @@
217
217
  border-width: 0 4px 5px 4px;
218
218
  }
219
219
  .select2-container--default .select2-selection--multiple {
220
- background-color: white;
221
- border: 1px solid #ccc;
220
+ background-color: var(--oc-white, #fff);
221
+ border: 1px solid var(--oc-gray-4, #ced4da);
222
222
  border-radius: 3px;
223
223
  cursor: text;
224
224
  }
@@ -0,0 +1 @@
1
+ <%= redmineup_assets %>
@@ -0,0 +1,33 @@
1
+ <% new_markup = up_journal_new_markup? %>
2
+ <% Journal.preload_journals_details_custom_fields(journals.to_a) %>
3
+ <div class="journals">
4
+ <% journals.to_a.each do |journal| %>
5
+ <div id="change-<%= journal.id %>" class="<%= journal.css_classes %>">
6
+ <div class="note">
7
+ <% if new_markup %>
8
+ <h4 class="journal-header">
9
+ <span class="journal-info">
10
+ <%= avatar(journal.user) %>
11
+ <%= authoring journal.created_on, journal.user, label: :label_updated_time_by %>
12
+ </span>
13
+ </h4>
14
+ <% else %>
15
+ <h4 class="note-header">
16
+ <%= avatar(journal.user) %>
17
+ <%= authoring journal.created_on, journal.user, label: :label_updated_time_by %>
18
+ </h4>
19
+ <% end %>
20
+ <%= content_tag('div', class: ('journal-content' if new_markup)) do %>
21
+ <% if journal.visible_details.any? %>
22
+ <%= content_tag('ul', class: new_markup ? 'journal-details' : 'details') do %>
23
+ <% journal.visible_details.each do |detail| %>
24
+ <li><%= up_journal_detail(detail, journal) %></li>
25
+ <% end %>
26
+ <% end %>
27
+ <% end %>
28
+ <%= content_tag('div', textilizable(journal, :notes), class: 'wiki') if show_notes && journal.notes.present? %>
29
+ <% end %>
30
+ </div>
31
+ </div>
32
+ <% end %>
33
+ </div>
@@ -0,0 +1,13 @@
1
+ ar:
2
+ label_redmineup_settings: إعدادات المال
3
+ label_redmineup_money: المال
4
+ label_redmineup_disable_taxes: تعطيل الضرائب
5
+ label_redmineup_default_tax: قيمة الضريبة الافتراضية
6
+ label_redmineup_tax_type: نوع الضريبة
7
+ label_redmineup_tax_type_exclusive: الضريبة غير شاملة
8
+ label_redmineup_tax_type_inclusive: الضريبة شاملة
9
+ label_redmineup_default_currency: العملة الافتراضية
10
+ label_redmineup_major_currencies: العملات الرئيسية
11
+ label_redmineup_thousands_delimiter: فاصل الآلاف
12
+ label_redmineup_decimal_separator: الفاصل العشري
13
+ lable_redmineup_add_tag: إضافة وسم
@@ -0,0 +1,13 @@
1
+ az:
2
+ label_redmineup_settings: Pul ayarları
3
+ label_redmineup_money: Pul
4
+ label_redmineup_disable_taxes: Vergiləri deaktiv et
5
+ label_redmineup_default_tax: Standart vergi dəyəri
6
+ label_redmineup_tax_type: Vergi növü
7
+ label_redmineup_tax_type_exclusive: Vergi daxil deyil
8
+ label_redmineup_tax_type_inclusive: Vergi daxildir
9
+ label_redmineup_default_currency: Standart valyuta
10
+ label_redmineup_major_currencies: Əsas valyutalar
11
+ label_redmineup_thousands_delimiter: Minlik ayırıcı
12
+ label_redmineup_decimal_separator: Onluq ayırıcı
13
+ lable_redmineup_add_tag: etiket əlavə et
@@ -0,0 +1,13 @@
1
+ bg:
2
+ label_redmineup_settings: Парични настройки
3
+ label_redmineup_money: Пари
4
+ label_redmineup_disable_taxes: Изключване на данъците
5
+ label_redmineup_default_tax: Данък по подразбиране
6
+ label_redmineup_tax_type: Тип данък
7
+ label_redmineup_tax_type_exclusive: Без включен данък
8
+ label_redmineup_tax_type_inclusive: С включен данък
9
+ label_redmineup_default_currency: Валута по подразбиране
10
+ label_redmineup_major_currencies: Основни валути
11
+ label_redmineup_thousands_delimiter: Разделител на хилядите
12
+ label_redmineup_decimal_separator: Десетичен разделител
13
+ lable_redmineup_add_tag: добави етикет