lyb_devise_admin 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,16 @@
1
1
  = simple_form_for @user do |f|
2
- = f.input :login if @user.respond_to? :login
3
- = f.input :email
4
- = f.input :password, :hint => !f.object.new_record?, :input_html => {:autocomplete => "off"}
5
- = f.input :password_confirmation
6
- = f.input :current_password, :required => true unless can?(:manage, User)
7
- = f.input :role_texts, :as => :select, :collection => Ability.roles_for_collection, :include_blank => false, :input_html => {:multiple => 'multiple'}, :required => true if can?(:manage, Role)
2
+ .row-fluid
3
+ .span6= f.input :login if @user.respond_to? :login
4
+ .span6= f.input :email
5
+ .row-fluid
6
+ .span6= f.input :password, :hint => !f.object.new_record?, :input_html => {:autocomplete => "off"}
7
+ .span6= f.input :password_confirmation
8
+ - unless can?(:manage, User)
9
+ .row-fluid
10
+ .span6= f.input :current_password, :required => true
11
+ .row-fluid
12
+ .span6= f.input :role_texts, :as => :select, :collection => Ability.roles_for_collection, :include_blank => false, :input_html => {:multiple => 'multiple'}, :required => true if can?(:manage, Role)
13
+
14
+ .form-actions
15
+ = f.button :submit
8
16
 
9
- = f.button :submit
@@ -1,7 +1,8 @@
1
1
  %table.table
2
2
  %thead
3
3
  %tr
4
- %th= t_attr :login
4
+ - if User.new.respond_to? :login
5
+ %th= t_attr :login
5
6
  %th= t_attr :name
6
7
  %th= t_attr :email
7
8
  %th= t_attr :role_texts
@@ -1,7 +1,8 @@
1
1
  %tr
2
- %td= link_to user.login, user, 'data-href-container' => 'tr'
2
+ -if user.respond_to? :login
3
+ %td= user.login
3
4
  %td= user.to_s
4
- %td= user.email
5
+ %td= link_to user.email, user, 'data-href-container' => 'tr'
5
6
  %td= user.roles.join(', ')
6
7
  %td= user.last_sign_in_at if Devise.mappings[:user].trackable?
7
8
  %td= user.locked_at if Devise.mappings[:user].lockable?
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module LybDeviseAdmin
4
- VERSION="0.3.5"
4
+ VERSION="0.3.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lyb_devise_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-16 00:00:00.000000000 Z
12
+ date: 2013-04-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: LybDeviseAdmin provides a ready-to-use admin interface for devise.
15
15
  email:
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  requirements: []
55
55
  rubyforge_project:
56
- rubygems_version: 1.8.23
56
+ rubygems_version: 1.8.11
57
57
  signing_key:
58
58
  specification_version: 3
59
59
  summary: Admin interface for device.