trusty-cms 7.0.30 → 7.0.31

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: 9ef6650284d438676ef388a1b002d3ff0acfe81dc068bcfafa9e1cb2814749f9
4
- data.tar.gz: e6a980c1afa8435a04314a5b43b6788ecc4f743e9c7c32015245e15e0c8c0804
3
+ metadata.gz: b6638d8ed6e3b9f192675721e595bc6ed217eed616e2e3b869531b405b4afe32
4
+ data.tar.gz: 4cf9d0d42e6549677a391b661c95214071a1ca1e38d5e00e58e83e966946e89f
5
5
  SHA512:
6
- metadata.gz: 33d9139d690d376c8d4547b3d8c20cec750671050a9aa9378a197c3c28ab79cb04fda4403b17f2da86bdad23c5699d3dfdeef5f16db1469ad17c546464df89b8
7
- data.tar.gz: f728eb8f4da2af5477ba994c9ccad2d5ac46620f0893295734a66035601c2317dc750985ec3b9d52518c786eebd1f5056a4f8dd301cb2beb4001f82e7d96835c
6
+ metadata.gz: 5869e4913fa6901c264e224fc8fe5da3f32758f2a8b371fe6e74b3e93f7e2be45b4945733afc32681e79a7bd9c6ae2fe74f91f3189405ef17d2f5e58fe241900
7
+ data.tar.gz: 2c5eb337819e07bda79023a9c969c4f277253013a5e1881dc2efd23f4d9ac4235fe1490dd81d391cc249abecf26e1b33e44b8fab6940763fe218251d1ac3cace
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (7.0.30)
4
+ trusty-cms (7.0.31)
5
5
  RedCloth (= 4.3.3)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.3.0)
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
 
27
- #display_password {
27
+ #display-password {
28
28
  .button {
29
29
  display: block;
30
30
  max-width: fit-content;
@@ -19,7 +19,7 @@
19
19
  %span
20
20
  = current_user.locale
21
21
  .actions
22
- = button_to t("edit_preferences"), edit_admin_user_path(current_user), :method => :get
22
+ = button_to t("edit_preferences"), admin_preferences_path, :method => :get
23
23
 
24
24
  %fieldset
25
25
  - render_region :user do |user|
@@ -15,6 +15,9 @@
15
15
  = f.label :email, t('email_address') , :class => 'optional'
16
16
  = f.text_field 'email', :class => 'textbox', :maxlength => 255
17
17
 
18
+ - form.edit_password do
19
+ = render 'password_fields', :f => f
20
+
18
21
  - form.edit_roles do
19
22
  - if current_user.admin?
20
23
  %fieldset.multi_option
@@ -0,0 +1,14 @@
1
+ %fieldset#display-password{ :style => (@user.new_record? or !@user.valid?) ? 'display: none' : nil }
2
+ %label= t('password')
3
+ %a.button{ :href => '#', :onclick => "$('#display-password').hide(); $('#change-password').show()" }= t('change')
4
+ %fieldset#change-password{ :style => (!@user.new_record? && @user.valid?) ? 'display: none' : nil }
5
+ %p
6
+ = f.label :password, t('new_password')
7
+ = f.password_field 'password', :value => '', :maxlength => 40, :autocomplete => 'new-password'
8
+ %p
9
+ = f.label :password_confirmation, t('password_confirmation')
10
+ = f.password_field 'password_confirmation', :value => '', :maxlength => 40, :autocomplete => 'new-password'
11
+ - unless @user.new_record?
12
+ %span
13
+ = t('or')
14
+ %a{ :href => '#', :class => 'cancel-button', :onclick => " $('#display-password').show(); $('#change-password').hide()" }= t('cancel', class: 'alt')
@@ -70,7 +70,8 @@ module TrustyCms
70
70
  end
71
71
 
72
72
  def deprecated_add(name, url, caller)
73
- ActiveSupport::Deprecation.warn("admin.tabs.add is no longer supported in TrustyCms 0.9.x. Please update your code to use: \ntab \"Content\" do\n\tadd_item(...)\nend", caller)
73
+ ActiveSupport::Deprecation.warn("admin.tabs.add is no longer supported in TrustyCms 0.9.x. Please update your code to use: \ntab \"Content\" do\n\tadd_item(...)\nend",
74
+ caller)
74
75
  NavSubItem.new(name, url)
75
76
  end
76
77
  end
@@ -201,7 +202,7 @@ module TrustyCms
201
202
  end
202
203
  user.edit = RegionSet.new do |edit|
203
204
  edit.main.concat %w{edit_header edit_form}
204
- edit.form.concat %w{edit_first_name edit_last_name edit_email edit_roles edit_notes}
205
+ edit.form.concat %w{edit_first_name edit_last_name edit_email edit_password edit_roles edit_notes}
205
206
  edit.form_bottom.concat %w{edit_buttons edit_timestamp}
206
207
  end
207
208
  user.index = RegionSet.new do |index|
@@ -1,3 +1,3 @@
1
1
  module TrustyCms
2
- VERSION = '7.0.30'.freeze
2
+ VERSION = '7.0.31'.freeze
3
3
  end
@@ -10,7 +10,7 @@ module MultiSite::PagesControllerExtensions
10
10
  alias_method :remove, :remove_with_back
11
11
  responses.destroy.default do
12
12
  session[:came_from] = nil
13
- redirect_to admin_pages_url(site_id: model.site.id)
13
+ redirect_to admin_pages_path
14
14
  end
15
15
  }
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.30
4
+ version: 7.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-19 00:00:00.000000000 Z
11
+ date: 2025-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator
@@ -908,6 +908,7 @@ files:
908
908
  - app/views/admin/two_factor/show.html.haml
909
909
  - app/views/admin/users/_choose_site.html.haml
910
910
  - app/views/admin/users/_form.html.haml
911
+ - app/views/admin/users/_password_fields.html.haml
911
912
  - app/views/admin/users/edit.html.haml
912
913
  - app/views/admin/users/index.html.haml
913
914
  - app/views/admin/users/new.html.haml