alchemy_cms 7.0.9 → 7.0.11

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: 8da1dca92c99bbe46045a378b3a2f9b7585c168adf95c5887f487e6145ccc8fa
4
- data.tar.gz: 2b03c7720954bd3293b461ea3888cbdc7688658cf4d55ee93f34d0ee0665b784
3
+ metadata.gz: deabc73ce8b0c2eade517bfe45f105dda4163f3c783733f831c469cae17119e5
4
+ data.tar.gz: cdd7d1692459a1ba8250db2742f4d7ae408ca618fa24a91e6f909499cc46b463
5
5
  SHA512:
6
- metadata.gz: fb3960ce49c6f137040b72458438fff2bb698898fe9ad64370980dd4dcd97df9cbce2033f5b13b2011e40c173b6acc7b9a05ef1146a1d042f1adbf755734eb57
7
- data.tar.gz: 86bd60f2a5af41044b7fa23245bd82ed4e204ad01a1630efcc5327d7b25ee38500e69fa8fcf69bd55c2048687279ff8394c5c98601d4a0edc0f63438924e23cb
6
+ metadata.gz: 2787d3437e95a26164374d9fb70b12023f19f674972a94952731d527085ed118880aa7aa070caeb17c869ce41d9776134e059dd909b2a9952b9843c2d1fb40be
7
+ data.tar.gz: e1c9daaca6fe230b6973f9cfcba6c5d4b0cfa586ddf02be80dd649db6834f481f8c92d889a7ea73b03dbc1401117e587f7f79c46594a9019a8d22b34ab1f18ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.11 (2024-03-05)
4
+
5
+ - [7.0-stable] Do not include timezone in datepickers only displaying date [#2769](https://github.com/AlchemyCMS/alchemy_cms/pull/2769) ([tvdeyen](https://github.com/tvdeyen))
6
+
7
+ ## 7.0.10 (2024-02-29)
8
+
9
+ - [7.0-stable] Fix taggable uniqueness in tags admin table [#2763](https://github.com/AlchemyCMS/alchemy_cms/pull/2763) ([alchemycms-bot](https://github.com/alchemycms-bot))
10
+
3
11
  ## 7.0.9 (2024-02-27)
4
12
 
5
13
  - [7.0] Fix tags view for missing taggables [#2757](https://github.com/AlchemyCMS/alchemy_cms/pull/2757) ([tvdeyen](https://github.com/tvdeyen))
@@ -12,6 +12,8 @@ export default function Datepicker(scope = document) {
12
12
  // Initializes the datepickers
13
13
  datepickerInputs.forEach((input) => {
14
14
  const type = input.dataset.datepickerType
15
+ const enableTime = /time/.test(type)
16
+
15
17
  const options = {
16
18
  // alchemy_i18n supports `zh_CN` etc., but flatpickr only has two-letter codes (`zh`)
17
19
  locale: Alchemy.locale.slice(0, 2),
@@ -19,7 +21,7 @@ export default function Datepicker(scope = document) {
19
21
  altFormat: Alchemy.t(`formats.${type}`),
20
22
  altInputClass: "flatpickr-input",
21
23
  dateFormat: "Z",
22
- enableTime: /time/.test(type),
24
+ enableTime,
23
25
  noCalendar: type === "time",
24
26
  time_24hr: Alchemy.t("formats.time_24hr"),
25
27
  onValueUpdate(_selectedDates, _dateStr, instance) {
@@ -28,6 +30,11 @@ export default function Datepicker(scope = document) {
28
30
  )
29
31
  }
30
32
  }
33
+
34
+ if (enableTime) {
35
+ options.dateFormat = "Z"
36
+ }
37
+
31
38
  flatpickr(input, options)
32
39
  })
33
40
  }
@@ -2,7 +2,7 @@
2
2
  <td class="icon"><%= render_icon :tag %></td>
3
3
  <td class="name"><%= tag.name %></td>
4
4
  <td>
5
- <% tag.taggings.collect(&:taggable).compact.uniq.each do |taggable| %>
5
+ <% tag.taggings.collect(&:taggable).compact.uniq(&:class).each do |taggable| %>
6
6
  <span class="label">
7
7
  <%= taggable.class.model_name.human %>
8
8
  </span>
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.0.9"
4
+ VERSION = "7.0.11"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.9
4
+ version: 7.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2024-02-27 00:00:00.000000000 Z
16
+ date: 2024-03-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer