solidus_backend 4.3.1 → 4.3.3

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: d1bd98b079702b8eae750a01a605470e705e5d0f00b5215d08abcd8a29fbff72
4
- data.tar.gz: b823daba9370ccd0e6dbf66ced3e1b0aa79b30842efcd6b190c18030362c03a2
3
+ metadata.gz: c16ee63546b0858a50fdf7427e815d90a3ddf5ac6d220a768f5ec0e9293fb18f
4
+ data.tar.gz: b1a924e5dc1bbc8e6890afd8db1fbdc7894cf021466aa58ee822f7036ac59c73
5
5
  SHA512:
6
- metadata.gz: 85bcd10acfe75dc59fbea0b4231732d3f28128ff963753438c2e8862c8da503948e71cf0436cf0daf6b4d4f989ab771d010a48c6b240619d6cc9a87a385404f7
7
- data.tar.gz: 8f2b7d2b7db94cf2122c4d4f04b4d4c141c4c4db890750b202b4e4ba7b411a8ab70a9e7220137ca7b31fe374ffd319411a3bcafa7ff501debfaae1bac4a22455
6
+ metadata.gz: 4f4c53d6bd06d3932d471c7f10f4fa95c74771c4672264bf89b94a9a2cbbf1bd0f314bd981c3ab4ee70a957618937a3005fdf75fc3be5b5b2f28f17e405e6925
7
+ data.tar.gz: 38007856f43c6c07574039f79b890a7c5d24e46de1ac5263a8b28be50ce6f553909ca73a3473b40b5e54e16b95eb6f478ca869b6f3380a653d5e5907b9ecba2a
@@ -7,5 +7,5 @@ Spree.formatMoney = function(amount, currency) {
7
7
  var thousand = Spree.t('currency_delimiter');
8
8
  var decimal = Spree.t('currency_separator');
9
9
 
10
- return accounting.formatMoney(amount, currencyInfo[0], currencyInfo[1], thousand, decimal, currencyInfo[2]);
10
+ return accounting.formatMoney(amount, currencyInfo[0], currencyInfo[1], thousand, decimal, currencyInfo[2]).trim();
11
11
  }
@@ -17,11 +17,14 @@
17
17
  JSON.dump(
18
18
  Spree::Config.available_currencies.map { |c|
19
19
  format =
20
- if c.symbol == "" || c.symbol_first
20
+ if c.format.present?
21
+ c.format.gsub("%u", "%s").gsub("%n", "%v")
22
+ elsif c.symbol == "" || c.symbol_first
21
23
  "%s%v"
22
24
  else
23
25
  "%v %s"
24
26
  end
27
+
25
28
  [c.id.to_s.upcase, [
26
29
  c.symbol || "¤",
27
30
  c.exponent,
@@ -1,6 +1,6 @@
1
1
  <% theme_options_for_select = Spree::Backend::Config.themes.keys.map { |theme| [theme.to_s.humanize, theme] }.sort %>
2
2
 
3
- <%= form_tag(admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %>
3
+ <%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %>
4
4
  <%= hidden_field_tag :system_theme, :light %>
5
5
  <label class="admin-navbar-selection">
6
6
  <i class="fa fa-sun-o fa-fw" title="<%= I18n.t('spree.choose_dashboard_theme') %>"></i>
@@ -10,7 +10,7 @@
10
10
  </label>
11
11
  <% end %>
12
12
 
13
- <%= form_tag(admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %>
13
+ <%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %>
14
14
  <%= hidden_field_tag :system_theme, :dark %>
15
15
  <label class="admin-navbar-selection">
16
16
  <i class="fa fa-moon-o fa-fw" title="<%= I18n.t('spree.choose_dashboard_theme') %>"></i>
@@ -1,7 +1,7 @@
1
1
  <% theme_options_for_select = Spree::Backend::Config.themes.keys.map { |theme| [theme.to_s.humanize, theme] }.sort %>
2
2
 
3
3
  <li>
4
- <%= form_tag(admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %>
4
+ <%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %>
5
5
  <%= hidden_field_tag :system_theme, :light %>
6
6
  <label>
7
7
  <svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-sun-line"></use></svg>
@@ -12,7 +12,7 @@
12
12
  </label>
13
13
  <% end %>
14
14
 
15
- <%= form_tag(admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %>
15
+ <%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %>
16
16
  <%= hidden_field_tag :system_theme, :dark %>
17
17
  <label>
18
18
  <svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-moon-line"></use></svg>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2024-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.3.1
19
+ version: 4.3.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.3.1
26
+ version: 4.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.3.1
33
+ version: 4.3.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.3.1
40
+ version: 4.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: font-awesome-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -919,7 +919,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
919
919
  - !ruby/object:Gem::Version
920
920
  version: 1.8.23
921
921
  requirements: []
922
- rubygems_version: 3.5.3
922
+ rubygems_version: 3.4.10
923
923
  signing_key:
924
924
  specification_version: 4
925
925
  summary: Admin interface for the Solidus e-commerce framework.