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 +4 -4
- data/app/views/admin/preferences/edit.html.haml +0 -1
- data/app/views/admin/users/index.html.haml +7 -0
- data/lib/trusty_cms/admin_ui.rb +2 -2
- data/lib/trusty_cms.rb +1 -1
- metadata +31 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2de43e8b919112d79f1e8ab3b2880934f1eeb7effe4a4c105f74d3a38d9e93c
|
4
|
+
data.tar.gz: c5e946563f4c5514e650b656b28f3900102ef4dc6d2d6c0d122a7ffbb695b9a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/trusty_cms/admin_ui.rb
CHANGED
@@ -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
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.
|
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-
|
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/
|
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/
|
1174
|
-
- spec/
|
1175
|
-
- spec/dummy/
|
1176
|
-
- spec/dummy/
|
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/
|
1184
|
-
- spec/dummy/
|
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/
|
1187
|
-
- spec/dummy/config/
|
1188
|
-
- spec/dummy/config/
|
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/
|
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/
|
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/
|
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/
|
1203
|
+
- spec/dummy/db/schema.rb
|
1208
1204
|
- spec/dummy/Rakefile
|
1209
|
-
- spec/
|
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
|