ucb_rails_user 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/helpers/ucb_rails_user/users_helper.rb +3 -0
- data/app/views/ucb_rails_user/users/_form.html.haml +4 -4
- data/app/views/ucb_rails_user/users/_user.html.haml +3 -3
- data/app/views/ucb_rails_user/users/index.html.haml +16 -15
- data/lib/ucb_rails_user.rb +0 -3
- data/lib/ucb_rails_user/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c9b7c60383d3c2173a957728803d3be316b4453b384eaecad89bc17ccfccdeb0
|
4
|
+
data.tar.gz: 0c00722b9525c583b4bf42015ddd62a63b3cdfa0e5732d4fa52cb779fbea7466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 042e3bf99202395403a49c369c1dbd63ee5c4abf19d7db6bab46a578be83bd8894e3fd2af80fc59bc64b3fce1e566221eafa96d139ae02a25666bf0f4be0c7f6
|
7
|
+
data.tar.gz: e3285e5db0c2262f6b4efc61a78a8c20db0b776380faa12bda776dbfddb81712e583d6d1ac5ae1c716efb16c47bb1992f2a7fcb288491bd9fe2e8d6057bebc67
|
@@ -4,11 +4,11 @@
|
|
4
4
|
= f.input :last_name, :input_html => {disabled: 'disabled'}
|
5
5
|
= f.input :email, :input_html => {disabled: 'disabled'}
|
6
6
|
= f.input :alternate_email
|
7
|
-
= f.input :last_login_at, as: :string, :input_html => {disabled: 'disabled', value:
|
7
|
+
= f.input :last_login_at, as: :string, :input_html => {disabled: 'disabled', value: @user.last_login_at&.strftime("%m/%d/%Y %H:%M:%S")}
|
8
8
|
= f.input :superuser_flag, :as => :boolean, label: "Superuser?", wrapper: :horizontal_boolean
|
9
9
|
= f.input :inactive_flag, :as => :boolean, :label => "Inactive User?", wrapper: :horizontal_boolean
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
=
|
11
|
+
.form-actions
|
12
|
+
%button{type: "submit", class: "btn btn-primary"} Submit
|
13
|
+
= link_to "Cancel", admin_users_path
|
14
14
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
%tr[user]
|
2
|
-
=
|
3
|
-
=
|
2
|
+
%td= checkmark(user.superuser?)
|
3
|
+
%td= checkmark(user.inactive?)
|
4
4
|
%td= user.first_name
|
5
5
|
%td= user.last_name
|
6
6
|
%td= mail_to(user.email)
|
7
|
-
%td.dt=
|
7
|
+
%td.dt= user.last_login_at&.strftime("%m/%d/%Y %H:%M:%S")
|
8
8
|
%td.min= user.ldap_uid
|
9
9
|
%td.min= user.employee_id
|
10
10
|
%td= link_to('edit', edit_admin_user_path(user), :class => 'btn btn-default btn-xs', :id => dom_id(user, 'edit'))
|
@@ -2,20 +2,21 @@
|
|
2
2
|
%h1
|
3
3
|
Users
|
4
4
|
|
5
|
-
|
6
|
-
%
|
7
|
-
%
|
8
|
-
%
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
5
|
+
.table-responsive
|
6
|
+
%table.table.table-striped.table-bordered.table-hover.ucb-rails-users-table
|
7
|
+
%thead
|
8
|
+
%tr
|
9
|
+
%th.min Superuser?
|
10
|
+
%th.min Inactive?
|
11
|
+
%th First Name
|
12
|
+
%th Last Name
|
13
|
+
%th Email
|
14
|
+
%th.dt Last Login
|
15
|
+
%th UID
|
16
|
+
%th Employee ID
|
17
|
+
%th.min Edit
|
18
|
+
%th.min Delete
|
19
|
+
%tbody.highlight
|
20
|
+
= render partial: "ucb_rails_user/users/user", collection: @users
|
20
21
|
|
21
22
|
|
data/lib/ucb_rails_user.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ucb_rails_user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Downey
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -139,20 +139,6 @@ dependencies:
|
|
139
139
|
- - "~>"
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '3.0'
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: bootstrap-view-helpers
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
requirements:
|
146
|
-
- - "~>"
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
version: 0.0.14
|
149
|
-
type: :runtime
|
150
|
-
prerelease: false
|
151
|
-
version_requirements: !ruby/object:Gem::Requirement
|
152
|
-
requirements:
|
153
|
-
- - "~>"
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: 0.0.14
|
156
142
|
- !ruby/object:Gem::Dependency
|
157
143
|
name: sqlite3
|
158
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -271,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
257
|
version: '0'
|
272
258
|
requirements: []
|
273
259
|
rubyforge_project:
|
274
|
-
rubygems_version: 2.
|
260
|
+
rubygems_version: 2.7.7
|
275
261
|
signing_key:
|
276
262
|
specification_version: 4
|
277
263
|
summary: Rails engine for UCB user accounts
|