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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/admin/partials/_preferences.scss +1 -1
- data/app/views/admin/configuration/show.html.haml +1 -1
- data/app/views/admin/users/_form.html.haml +3 -0
- data/app/views/admin/users/_password_fields.html.haml +14 -0
- data/lib/trusty_cms/admin_ui.rb +3 -2
- data/lib/trusty_cms/version.rb +1 -1
- data/vendor/extensions/multi-site-extension/lib/multi_site/pages_controller_extensions.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6638d8ed6e3b9f192675721e595bc6ed217eed616e2e3b869531b405b4afe32
|
4
|
+
data.tar.gz: 4cf9d0d42e6549677a391b661c95214071a1ca1e38d5e00e58e83e966946e89f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5869e4913fa6901c264e224fc8fe5da3f32758f2a8b371fe6e74b3e93f7e2be45b4945733afc32681e79a7bd9c6ae2fe74f91f3189405ef17d2f5e58fe241900
|
7
|
+
data.tar.gz: 2c5eb337819e07bda79023a9c969c4f277253013a5e1881dc2efd23f4d9ac4235fe1490dd81d391cc249abecf26e1b33e44b8fab6940763fe218251d1ac3cace
|
data/Gemfile.lock
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
%span
|
20
20
|
= current_user.locale
|
21
21
|
.actions
|
22
|
-
= button_to t("edit_preferences"),
|
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')
|
data/lib/trusty_cms/admin_ui.rb
CHANGED
@@ -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",
|
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|
|
data/lib/trusty_cms/version.rb
CHANGED
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.
|
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-
|
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
|