redmine_crm 0.0.61 → 0.0.62
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc50c105951bb021c6259da95f9cef9fdd018e4c97e5f6647b1d7e52587e0a97
|
4
|
+
data.tar.gz: e61bf0a052d3d7b4b6b50f8af5ef94ab384bc1487bdc1eb1bdbe27779225fdda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3efd69c7eb987ef3b570c3a97916b2e448063021b01a16cee2acb4119ad30ce46f8a7d8fc8b4d8267eaa6886115d0cda3c214e6f719c45b7792a629600790cf1
|
7
|
+
data.tar.gz: 2352b2d60a060152002120defc453fdb7aab2617677d38c31ada078226a5887f74cef6361c31333a20ea57b3709b2c388895b62821d85d6136e8173ea49910b5
|
data/doc/CHANGELOG
CHANGED
@@ -4,6 +4,10 @@ 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-11-15 v0.0.62
|
8
|
+
|
9
|
+
* Redmine 5.1 compatibility fixes
|
10
|
+
|
7
11
|
== 2023-09-27 v0.0.61
|
8
12
|
|
9
13
|
* Reverted time picker calendar
|
@@ -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
|
data/lib/redmine_crm/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.62
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RedmineUP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-15 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
|