trusty-cms 5.3.8 → 5.4.0

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: 55db1d184c2ccb4965bb5a019dc926f0504b4fcc351ab4e98342704ca47937b9
4
- data.tar.gz: cca0fa123755daeadd7244551347e2453e3c59348b678cb9f61f52e7949af9ce
3
+ metadata.gz: f2de43e8b919112d79f1e8ab3b2880934f1eeb7effe4a4c105f74d3a38d9e93c
4
+ data.tar.gz: c5e946563f4c5514e650b656b28f3900102ef4dc6d2d6c0d122a7ffbb695b9a4
5
5
  SHA512:
6
- metadata.gz: 535bc336f0363355e34867128765e4e6f078f47970372f630228e27e30d72e88f4e7223c11a2e46d4182031075369b5a572154ec4a998b36b2b57f467082e0d3
7
- data.tar.gz: 6dc46d99464d7d31a7702a978a3c50457393752e0ac112a208e0f6a7e5247d7bb4c0e90ab43c8e6717efe1365d7150783ea0ed72819c4d81396766c4f9682a72
6
+ metadata.gz: cf8e256abffa03675cccf05e30b7ccc0866a09f47cf4ee69cb770d3b4258020d2f4d3ba8982da54cd9546d5b0fc20e8150a39ff7517a33436f2dadc9f6419823
7
+ data.tar.gz: 5f52ac094adfe7c1d2c4cc947e627c0079c06832bf65bc10067d97d811329dda356b3af5d96d0820567d3c42ceabc3c09cf604a555ae69e8953cc27f43c2df56
@@ -8,7 +8,6 @@
8
8
  - main.edit_form do
9
9
  = form_for @user, :url => admin_preferences_path, :html => { :method => :put, 'data-onsubmit_status' => "#{t('saving_preferences')}…" } do |f|
10
10
  %fieldset
11
- = render :partial => 'admin/users/avatar'
12
11
 
13
12
  = render_region :form_top, :locals => {:f => f}
14
13
 
@@ -13,6 +13,8 @@
13
13
  %th.roles= t('roles')
14
14
  - thead.actions_header do
15
15
  %th.actions{:style=>'width:9em'}= t('modify')
16
+ - thead.last_sign_in_at_header do
17
+ %th.last_sign_in_at= "Last Sign In"
16
18
  %tbody
17
19
  - @users.each do |user|
18
20
  %tr[user]
@@ -32,6 +34,11 @@
32
34
  = link_to remove_admin_user_url(user), :class => 'action' do
33
35
  %i.fas.fa-minus-circle
34
36
  = t('remove')
37
+ - tbody.last_sign_in_at_cell do
38
+ -if user.last_sign_in_at.present?
39
+ %td.last_sign_in_at= user.last_sign_in_at.to_date
40
+ - else
41
+ %td.last_sign_in_at
35
42
 
36
43
  - render_region :bottom do |bottom|
37
44
  - bottom.new_button do
@@ -196,8 +196,8 @@ module TrustyCms
196
196
  edit.form_bottom.concat %w{edit_buttons edit_timestamp}
197
197
  end
198
198
  user.index = RegionSet.new do |index|
199
- index.thead.concat %w{title_header roles_header actions_header}
200
- index.tbody.concat %w{title_cell roles_cell actions_cell}
199
+ index.thead.concat %w{title_header roles_header actions_header last_sign_in_at_header}
200
+ index.tbody.concat %w{title_cell roles_cell actions_cell last_sign_in_at_cell}
201
201
  index.bottom.concat %w{new_button}
202
202
  end
203
203
  user.new = user.edit
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '5.3.8'.freeze
5
+ VERSION = '5.4.0'.freeze
6
6
  end
7
7
  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: 5.3.8
4
+ version: 5.4.0
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: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator
@@ -1165,52 +1165,52 @@ signing_key:
1165
1165
  specification_version: 4
1166
1166
  summary: A no-fluff content management system designed for small teams.
1167
1167
  test_files:
1168
- - spec/models/layout_spec.rb
1169
- - spec/fixtures/users.yml
1168
+ - spec/factories/layout.rb
1170
1169
  - spec/factories/user.rb
1171
- - spec/factories/page_part.rb
1172
1170
  - spec/factories/page.rb
1173
- - spec/factories/layout.rb
1174
- - spec/ci/database.mysql.yml
1175
- - spec/dummy/public/422.html
1176
- - spec/dummy/public/favicon.ico
1177
- - spec/dummy/public/404.html
1178
- - spec/dummy/public/500.html
1171
+ - spec/factories/page_part.rb
1172
+ - spec/dummy/package.json
1173
+ - spec/dummy/README.rdoc
1174
+ - spec/dummy/bin/rails
1179
1175
  - spec/dummy/bin/bundle
1180
1176
  - spec/dummy/bin/setup
1181
- - spec/dummy/bin/rails
1182
1177
  - spec/dummy/bin/rake
1183
- - spec/dummy/db/schema.rb
1184
- - spec/dummy/config/secrets.yml
1178
+ - spec/dummy/config.ru
1179
+ - spec/dummy/public/500.html
1180
+ - spec/dummy/public/404.html
1181
+ - spec/dummy/public/favicon.ico
1182
+ - spec/dummy/public/422.html
1185
1183
  - spec/dummy/config/database.yml
1186
- - spec/dummy/config/initializers/backtrace_silencers.rb
1187
- - spec/dummy/config/initializers/assets.rb
1188
- - spec/dummy/config/initializers/trusty_cms_config.rb
1184
+ - spec/dummy/config/environments/test.rb
1185
+ - spec/dummy/config/environments/production.rb
1186
+ - spec/dummy/config/environments/development.rb
1187
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
1189
1188
  - spec/dummy/config/initializers/wrap_parameters.rb
1190
- - spec/dummy/config/initializers/mime_types.rb
1191
1189
  - spec/dummy/config/initializers/cookies_serializer.rb
1192
- - spec/dummy/config/initializers/filter_parameter_logging.rb
1190
+ - spec/dummy/config/initializers/backtrace_silencers.rb
1191
+ - spec/dummy/config/initializers/trusty_cms_config.rb
1193
1192
  - spec/dummy/config/initializers/inflections.rb
1193
+ - spec/dummy/config/initializers/mime_types.rb
1194
+ - spec/dummy/config/initializers/assets.rb
1194
1195
  - spec/dummy/config/initializers/session_store.rb
1195
1196
  - spec/dummy/config/boot.rb
1196
- - spec/dummy/config/locales/en.yml
1197
+ - spec/dummy/config/secrets.yml
1198
+ - spec/dummy/config/routes.rb
1197
1199
  - spec/dummy/config/environment.rb
1198
1200
  - spec/dummy/config/application.rb
1199
- - spec/dummy/config/routes.rb
1200
- - spec/dummy/config/environments/development.rb
1201
- - spec/dummy/config/environments/test.rb
1202
- - spec/dummy/config/environments/production.rb
1203
- - spec/dummy/app/assets/config/manifest.js
1204
- - spec/dummy/package.json
1205
- - spec/dummy/README.rdoc
1201
+ - spec/dummy/config/locales/en.yml
1206
1202
  - spec/dummy/yarn.lock
1207
- - spec/dummy/config.ru
1203
+ - spec/dummy/db/schema.rb
1208
1204
  - spec/dummy/Rakefile
1209
- - spec/controllers/application_controller_spec.rb
1205
+ - spec/dummy/app/assets/config/manifest.js
1210
1206
  - spec/controllers/users_controller_spec.rb
1207
+ - spec/controllers/application_controller_spec.rb
1208
+ - spec/models/layout_spec.rb
1209
+ - spec/fixtures/users.yml
1210
+ - spec/ci/database.mysql.yml
1211
1211
  - spec/support/custom_actions.rb
1212
- - spec/rails_helper.rb
1213
- - spec/features/pages_spec.rb
1214
1212
  - spec/features/layouts_spec.rb
1215
1213
  - spec/features/config_spec.rb
1214
+ - spec/features/pages_spec.rb
1216
1215
  - spec/spec_helper.rb
1216
+ - spec/rails_helper.rb