redmine_crm 0.0.61 → 0.0.63

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: 6c71d48ccbfad49844db606ac43e6927c07fbc886770df6f2e2cddcdd95a6081
4
- data.tar.gz: de57d13eb0eebdd8b58b095938d5266ee5bcfd043a41fee736cfa5f4e0d4a436
3
+ metadata.gz: d6f025a0e487391530abd90ac50a2e4eae82f8f7dfe2a111b94fdf5bee72e49c
4
+ data.tar.gz: f4b6416ab62493a9909739545c70ec32ec22334409e07bf1270d6127a1149fcf
5
5
  SHA512:
6
- metadata.gz: '096a9b92b027b8d5229dd95305a1b63f4a0250266cf50454ff650ea6b16b2255ae9ca2c938bc4b00d09ad7b3c7af11c30535f05a7b7c9e23762d807b04d4611f'
7
- data.tar.gz: 4140df48577e1ff647ee18bc7c24347528648bc7de68ffe17c12804256fce43134e16405d5d17eff7b4bdc6d3c53dfeb28514913d1f57d50cf4a42dbce2648ff
6
+ metadata.gz: dd9eb904c28266a1d335f7b797c107686d74661bde31dee567de54c1aed2f556721b18621c1b2a03607f129d698e6b46525a325b5ca33c27663b7bce281c1b6a
7
+ data.tar.gz: c8e0342ed8a4f60fc7bb56d4e7b91d4e19f5b677fcb88f8f5dbe196515f86139a98c4f48ad003e3061b0b066fdac46c25128d4fc8889711cb70e2a6f68858a25
data/doc/CHANGELOG CHANGED
@@ -4,6 +4,14 @@ Redmine crm gem - general functions for plugins (tags, vote, viewing, currency)
4
4
  Copyright (C) 2011-2023 RedmineUP
5
5
  https://www.redmineup.com/
6
6
 
7
+ == 2023-12-26 v0.0.63
8
+
9
+ * Compatibility fixes with attachment routes
10
+
11
+ == 2023-11-15 v0.0.62
12
+
13
+ * Redmine 5.1 compatibility fixes
14
+
7
15
  == 2023-09-27 v0.0.61
8
16
 
9
17
  * Reverted time picker calendar
@@ -12,6 +12,8 @@ module RedmineCrm
12
12
 
13
13
  module InstanceMethods
14
14
  def constraints_with_redmine_crm(options = {}, &block)
15
+ return constraints_without_redmine_crm(options, &block) unless options.is_a?(Hash)
16
+
15
17
  options[:object_type] = /.+/ if options[:object_type] && options[:object_type].is_a?(Regexp)
16
18
  constraints_without_redmine_crm(options, &block)
17
19
  end
@@ -0,0 +1,22 @@
1
+ module RedmineCrm
2
+ module CalendarsHelper
3
+
4
+ def calendar_day_css_classes(calendar, day)
5
+ css = day.month==calendar.month ? +'even' : +'odd'
6
+ css << " today" if User.current.today == day
7
+ css << " nwday" if non_working_week_days.include?(day.cwday)
8
+ css
9
+ end
10
+
11
+ def non_working_week_days
12
+ @non_working_week_days ||= begin
13
+ days = Setting.non_working_week_days
14
+ if days.is_a?(Array) && days.size < 7
15
+ days.map(&:to_i)
16
+ else
17
+ []
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -4,6 +4,7 @@ module RedmineCrm
4
4
  module Hooks
5
5
  class ViewsLayoutsHook < Redmine::Hook::ViewListener
6
6
  def view_layouts_base_html_head(_context = {})
7
+ stylesheet_link_tag(:calendars, plugin: 'redmine_crm') +
7
8
  stylesheet_link_tag(:money, plugin: 'redmine_crm')
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module RedmineCrm
2
- VERSION = '0.0.61'
2
+ VERSION = '0.0.63'
3
3
  end
data/lib/redmine_crm.rb CHANGED
@@ -38,6 +38,7 @@ require 'redmine_crm/liquid/drops/time_entries_drop'
38
38
  require 'redmine_crm/liquid/drops/attachment_drop'
39
39
  require 'redmine_crm/liquid/drops/issue_relations_drop'
40
40
 
41
+ require 'redmine_crm/helpers/calendars_helper'
41
42
  require 'redmine_crm/helpers/external_assets_helper'
42
43
  require 'redmine_crm/helpers/form_tag_helper'
43
44
  require 'redmine_crm/assets_manager'
@@ -59,6 +60,7 @@ end
59
60
  RedmineCrm::AssetsManager.install_assets
60
61
 
61
62
  if defined?(ActionView::Base)
63
+ ActionView::Base.send :include, RedmineCrm::CalendarsHelper
62
64
  ActionView::Base.send :include, RedmineCrm::ExternalAssetsHelper
63
65
  ActionView::Base.send :include, RedmineCrm::FormTagHelper
64
66
  end
@@ -0,0 +1,15 @@
1
+ table.cal {width: 100%; margin: 0 0 6px 0; border: 1px solid #c0c0c0; border-spacing: 0; border-radius: 3px;}
2
+ table.cal thead th {width: 14%; background-color:#EEEEEE; padding: 4px; }
3
+ table.cal thead th.week-number {width: auto;}
4
+ table.cal tbody tr {height: 100px;}
5
+ table.cal td .icon {padding-top: 2px; padding-bottom: 3px;}
6
+ table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em; border-bottom: 0; border-right: 0;}
7
+ table.cal td.week-number { background-color:#EEEEEE; padding: 4px; border:none; font-size: 1em;}
8
+ table.cal td p.day-num {font-size: 1.1em; text-align:right;}
9
+ table.cal td.odd p.day-num {color: #bbb;}
10
+ table.cal td.today {background:#ffffdd;}
11
+ table.cal td.today p.day-num {font-weight: bold;}
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;}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.61
4
+ version: 0.0.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedmineUP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-29 00:00:00.000000000 Z
11
+ date: 2023-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -143,6 +143,7 @@ files:
143
143
  - lib/redmine_crm/currency/heuristics.rb
144
144
  - lib/redmine_crm/currency/loader.rb
145
145
  - lib/redmine_crm/engine.rb
146
+ - lib/redmine_crm/helpers/calendars_helper.rb
146
147
  - lib/redmine_crm/helpers/external_assets_helper.rb
147
148
  - lib/redmine_crm/helpers/form_tag_helper.rb
148
149
  - lib/redmine_crm/helpers/tags_helper.rb
@@ -215,6 +216,7 @@ files:
215
216
  - vendor/assets/javascripts/select2.js
216
217
  - vendor/assets/javascripts/select2_helpers.js
217
218
  - vendor/assets/javascripts/timepicker_addon.js
219
+ - vendor/assets/stylesheets/calendars.css
218
220
  - vendor/assets/stylesheets/money.css
219
221
  - vendor/assets/stylesheets/select2.css
220
222
  - vendor/assets/stylesheets/timepicker_addon.css