trusty-cms 5.3.7 → 5.3.9

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: 142ffda692fc907a04f59cd6a31d30e2e9397d8518161987a072ffa880cbdd98
4
- data.tar.gz: 54337c586f8569888abcbb0ebf0a3d947eb3401f552eb5e85e583ac4f3f84a03
3
+ metadata.gz: bedee4bc8c05973699af2e87db200f43d01f2ae4e828a78a932a78399e5d5b8c
4
+ data.tar.gz: 76dd1a71e70302e0dece24d647c81934f8c52e595aae0d5a5ae9257de532a2fe
5
5
  SHA512:
6
- metadata.gz: d0bd0157187af0c940538b8cac85623e76e50179c37f71a6aaad9cabda20abdd9a310c43a883301880991c1c599a13447a5d6bf2c0d52fac4ee4a7eee4c24554
7
- data.tar.gz: 93614fe90f4abee174d3495decb4bc671ecc86f422dfc2b0e6b7696ddd955fdbb8086cf2dcc83a71e3eb706e88f24800964135983743dbd349ae7391cbd11a7f
6
+ metadata.gz: 34afa2d697742c47502c7f3f831edace40c262bfd9ed5318c7430c96cacd07fe628e35d656812751a1706ea5b53982b2d60d275f1aa37b1d158c8965181b5274
7
+ data.tar.gz: 427f7c9f248a29a66f8770082cdb99f375ec761be05a1d90ba9e87eb381faf572feb17267be8d59a379638b20c6d595a7c5a7b4a7737d946fad80f09ec6628fc
@@ -2,7 +2,7 @@ class RailsPage < Page
2
2
  display_name 'Application'
3
3
  attr_accessor :breadcrumbs
4
4
 
5
- def find_by_url(url, live = true, clean = true)
5
+ def find_by_path(url, live = true, clean = true)
6
6
  found_page = super
7
7
  if found_page.nil? || found_page.is_a?(FileNotFoundPage)
8
8
  url = clean_url(url) if clean
@@ -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.7'.freeze
5
+ VERSION = '5.3.9'.freeze
6
6
  end
7
7
  end
@@ -36,7 +36,7 @@ module ShareLayouts
36
36
  end
37
37
 
38
38
  def find_page
39
- page = Page.find_by_url(request.path) rescue nil
39
+ page = Page.find_by_path(request.path) rescue nil
40
40
  page.is_a?(RailsPage) ? page : RailsPage.new(:class_name => "RailsPage")
41
41
  end
42
42
 
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.7
4
+ version: 5.3.9
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