devise-bootstrap-views 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/devise/registrations/edit.html.erb +2 -2
- data/app/views/devise/registrations/new.html.erb +1 -1
- data/app/views/devise/sessions/new.html.erb +1 -1
- data/app/views/devise/shared/_links.html.erb +19 -19
- data/lib/version.rb +1 -1
- data/locales/en.yml +1 -0
- data/locales/zh-CN.yml +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17d2b09d65c1e7e8e5066fe7d3ddba7866acece6
|
|
4
|
+
data.tar.gz: a6f9222c112a2c170f6a07b676ef244737193ef8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a8a2f10ea00d3a4c5240a87a84368f6442f7cae0df796900ab435e1e5f6a975f48622820a9adf6da15b1cb4e46840a30577f0f805165a8a2ab0a46c62a769c1
|
|
7
|
+
data.tar.gz: a594563618590acf6e949268e9de6eda85c6982b887be1c91f54b56f1c8b148c087319f409a2c17e4e0b9674f99ed03e5b106078cd1f1094871d7ff12df5806d
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="form-group">
|
|
13
|
-
<%= f.label :password %> <i>(<%= t('.leave_blank_if_you_don_t_want_to_change_it', :default => "leave blank if you don't want to change it") %>)</i
|
|
13
|
+
<%= f.label :password %> <i>(<%= t('.leave_blank_if_you_don_t_want_to_change_it', :default => "leave blank if you don't want to change it") %>)</i>
|
|
14
14
|
<%= f.password_field :password, :autocomplete => "off", class: "form-control" %>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="form-group">
|
|
17
|
-
<%= f.label :password_confirmation
|
|
17
|
+
<%= f.label :password_confirmation %>
|
|
18
18
|
<%= f.password_field :password_confirmation, class: "form-control" %>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="form-group">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="form-group">
|
|
13
|
-
<%= f.label :password
|
|
13
|
+
<%= f.label :password %>
|
|
14
14
|
<%= f.password_field :password, class: "form-control" %>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="form-group">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<% if devise_mapping.rememberable? %>
|
|
16
16
|
<div class="checkbox">
|
|
17
17
|
<%= f.label :remember_me do %>
|
|
18
|
-
<%= f.check_box :remember_me %>
|
|
18
|
+
<%= f.check_box :remember_me %> <%= t('.remember_me', :default => "Remember me") %>
|
|
19
19
|
<% end %>
|
|
20
20
|
</div>
|
|
21
21
|
<% end %>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
<%= link_to t(".sign_in", :default => "Sign in"), new_session_path(resource_name) %><br />
|
|
3
|
-
<% end
|
|
1
|
+
<% if controller_name != 'sessions' %>
|
|
2
|
+
<%= link_to t(".sign_in", :default => "Sign in"), new_session_path(resource_name) %><br />
|
|
3
|
+
<% end %>
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
<%= link_to t(".sign_up", :default => "Sign up"), new_registration_path(resource_name) %><br />
|
|
7
|
-
<% end
|
|
5
|
+
<% if devise_mapping.registerable? && controller_name != 'registrations' %>
|
|
6
|
+
<%= link_to t(".sign_up", :default => "Sign up"), new_registration_path(resource_name) %><br />
|
|
7
|
+
<% end %>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
<%= link_to t(".forgot_your_password", :default => "Forgot your password?"), new_password_path(resource_name) %><br />
|
|
11
|
-
<% end
|
|
9
|
+
<% if devise_mapping.recoverable? && controller_name != 'passwords' %>
|
|
10
|
+
<%= link_to t(".forgot_your_password", :default => "Forgot your password?"), new_password_path(resource_name) %><br />
|
|
11
|
+
<% end %>
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
<%= link_to t('.didn_t_receive_confirmation_instructions', :default => "Didn't receive confirmation instructions?"), new_confirmation_path(resource_name) %><br />
|
|
15
|
-
<% end
|
|
13
|
+
<% if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
|
14
|
+
<%= link_to t('.didn_t_receive_confirmation_instructions', :default => "Didn't receive confirmation instructions?"), new_confirmation_path(resource_name) %><br />
|
|
15
|
+
<% end %>
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
<%= link_to t('.didn_t_receive_unlock_instructions', :default => "Didn't receive unlock instructions?"), new_unlock_path(resource_name) %><br />
|
|
19
|
-
<% end
|
|
17
|
+
<% if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
|
18
|
+
<%= link_to t('.didn_t_receive_unlock_instructions', :default => "Didn't receive unlock instructions?"), new_unlock_path(resource_name) %><br />
|
|
19
|
+
<% end %>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
<% if devise_mapping.omniauthable? %>
|
|
22
|
+
<% resource_class.omniauth_providers.each do |provider| %>
|
|
23
23
|
<%= link_to t('.sign_in_with_provider', :provider => provider.to_s.titleize, :default => "Sign in with #{provider.to_s.titleize}"), omniauth_authorize_path(resource_name, provider) %><br />
|
|
24
|
-
<% end
|
|
25
|
-
<% end
|
|
24
|
+
<% end %>
|
|
25
|
+
<% end %>
|
data/lib/version.rb
CHANGED
data/locales/en.yml
CHANGED
data/locales/zh-CN.yml
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise-bootstrap-views
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yinghai Zhao
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
111
|
rubyforge_project:
|
|
112
|
-
rubygems_version: 2.
|
|
112
|
+
rubygems_version: 2.2.2
|
|
113
113
|
signing_key:
|
|
114
114
|
specification_version: 4
|
|
115
115
|
summary: Devise Bootstrap views with i18n support.
|