admin_auth 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDhlMmEwODNjOWIwNzMyZmQ4MDkwNDM4ZDQ2NTJiODAxMGY1MjE1OQ==
4
+ YjM3YTVmNTcyZDkwYTgxNzFmMzg2MTQ2YWVkOGNhMmU5NDljOThkMg==
5
5
  data.tar.gz: !binary |-
6
- YWQwZmNmM2ZlYmFkZDQxOWYzY2FmZjM4MzJhNTgwNmY4YzA1ZDYwNw==
6
+ NjBmOTg4Mjk2M2M2YmRkMTQ5OTQ3MDQ5MmJhNGM5ZmU0NzQxYjY3MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2NjYzAxMGZlNjE5YmZiNjJhNDg3MWI2ZjAwMWM3MTdjMjczMDI2MDJhMTJh
10
- NWZjZjg3YzZhNDI5NDBmZjc2MGE0ZWQ2NzA0OWVmMjNkNzhhMTcyYWE4OGVj
11
- NDk1ZDVhZjZlNTQ0YTQ2NTQ2MzY2NDVlMjE5MTk3MjMxZjEyNGY=
9
+ M2UxZDMxNjE4MDA4M2QyNTI0MzFhM2M3MjM1MDYwM2Q5YTgxMDgzMmU3NzFh
10
+ ZDU1YTk5ZjYyNzQ1NmU0NGQ0MjNkZThhMjY0ZWM3NDZjNzQ5YzA3ZjY4Yzc4
11
+ MGU4OTExZTE0ZDZmODUxOGU3YmZjZDYwYWI5YzZmOGI2NjdmMmQ=
12
12
  data.tar.gz: !binary |-
13
- NjA3ZGRiYmFjYjhiZDg0ZmUwMzE3YzlmNDgyNjFmMThkZTE3MWY1YWYyMzJj
14
- MWEyZTQxMzgxZjNjZGM3ZTFjYTExNTI4Y2Q4Njk2YmZkODZmM2Q3YzE5OWVh
15
- MTIxOWNjMDM4NTFiMDZkYzBhZGE0MDM2NDQwODJlNThmYTQ2ZTM=
13
+ Yzc1YmU5ZmZlODBlMzY0MWZhMmU3OGQzOTI1MWIxZmQwYWYxODJlOTc5NTRl
14
+ OTRlYjM3MWE2M2E2NTYzOWIwODA0NmQ2ZTY4OTFiNWE4ZTI1MTE2NzViNDc0
15
+ ZDdiNjc5MmMyZGM4ZjZiZmUyODI4NDBlOTRiOTE0ZTdhY2NiYzQ=
@@ -1,6 +1,6 @@
1
- .admin-auth.edit{ style: 'text-align: center' }
1
+ .admin-auth-edit{ style: 'text-align: center' }
2
2
  %h2= 'Edit admin'
3
3
  = form_for admin, url: admin_admin_path(locale, admin), method: :put do |f|
4
- .section= f.password_field :password, placeholder: '********'
5
- .section= f.password_field :password_confirmation, placeholder: '********'
6
- .section.actions= f.submit 'Save'
4
+ .admin-auth-section= f.password_field :password, placeholder: '********'
5
+ .admin-auth-section= f.password_field :password_confirmation, placeholder: '********'
6
+ .admin-auth-actions= f.submit 'Save'
@@ -1,11 +1,13 @@
1
- .admin-auth.index{ style: 'text-align: center' }
2
- %h2= 'Admins'
3
- .section.actions
4
- = link_to 'Add an Admin', new_admin_admin_path(locale), class: 'button'
5
- = link_to 'Change your password', edit_admin_admin_path(locale, current_admin), class: 'button'
1
+ .admin-auth-index{ style: 'width: 60%; margin: 0 auto' }
2
+ %h2
3
+ = 'Admins'
4
+ .admin-auth-actions{ style: 'font-weight: normal; font-size: 0.7em; float: right' }
5
+ = link_to 'Add an Admin', new_admin_admin_path(locale), class: 'button'
6
+ = link_to 'Change your password', edit_admin_admin_path(locale, current_admin), class: 'button'
7
+ = link_to 'Logout', admin_logout_path(locale), class: 'button'
6
8
 
7
9
  - admins.each do |admin|
8
- .admin
9
- .section= admin.email
10
- .section.actions= link_to 'Delete', admin_admin_path(locale, admin), method: :delete,
11
- data: { confirm: 'Are you sure?' }, class: 'button'
10
+ .admin-auth-admin{ style: 'margin-bottom: 1em; border-bottom: 1px dotted black;' }
11
+ = admin.email
12
+ = link_to 'Delete', admin_admin_path(locale, admin), method: :delete,
13
+ data: { confirm: 'Are you sure?' }, class: 'button', style: 'float: right'
@@ -1,7 +1,7 @@
1
- .admin-auth.new{ style: 'text-align: center' }
1
+ .admin-auth-new{ style: 'text-align: center' }
2
2
  %h2= 'New admin'
3
3
  = form_for admin, url: admin_admins_path(locale), method: :post do |f|
4
- .section= f.text_field :email, placeholder: 'email@email.com'
5
- .section= f.password_field :password, placeholder: '********'
6
- .section= f.password_field :password_confirmation, placeholder: '********'
7
- .section.actions= f.submit 'Save'
4
+ .admin-auth-section= f.text_field :email, placeholder: 'email@email.com'
5
+ .admin-auth-section= f.password_field :password, placeholder: '********'
6
+ .admin-auth-section= f.password_field :password_confirmation, placeholder: '********'
7
+ .admin-auth-actions= f.submit 'Save'
@@ -1,6 +1,6 @@
1
- .admin-auth.login{ style: 'text-align: center' }
1
+ .admin-auth-login{ style: 'text-align: center' }
2
2
  %h2= 'Admin login'
3
3
  = form_for admin, url: admin_login_path(locale), method: :post do |f|
4
- .section= f.text_field :email, autofocus: true, placeholder: 'email@email.com'
5
- .section= f.password_field :password, placeholder: '********'
6
- .section.actions= f.submit 'Login'
4
+ .admin-auth-section= f.text_field :email, autofocus: true, placeholder: 'email@email.com'
5
+ .admin-auth-section= f.password_field :password, placeholder: '********'
6
+ .admin-auth-actions= f.submit 'Login'
@@ -1,3 +1,3 @@
1
1
  module AdminAuth
2
- VERSION = '0.3.1'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phillip Boksz