devise-bootstrap-views 0.0.4 → 0.0.5
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 +19 -18
- data/app/views/devise/sessions/new.html.erb +1 -0
- data/lib/devise_bootstrap_views_helper.rb +1 -1
- data/lib/version.rb +1 -1
- data/locales/en.yml +2 -2
- data/locales/pt-BR.yml +3 -3
- 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: 97c3133072050eba167cfed2fe64d3b1ef8d344f
|
|
4
|
+
data.tar.gz: a252fa6e9c64007d554328657a9e1197047a4ff4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d024bb9edfafbb32a2104d37078071a57d751852b7f669401da9a14780149ad5dcec310208805f353f0222f37be43d8cf77210c74d4b44465b5d29e2e53c719
|
|
7
|
+
data.tar.gz: f3aa415af07a89ad5cfddd14ce60a14baa5bd6aa0dfb6a7e4d0eb12bf33eb97ad6ee817bf3005f612bd4a34bcdce7119cb61de859ce5531b0432fdf7c0419b45
|
|
@@ -5,24 +5,25 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
<div class="panel-body">
|
|
7
7
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<% end %>
|
|
8
|
+
<div class="form-group">
|
|
9
|
+
<%= f.label :email %>
|
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
|
11
|
+
</div>
|
|
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><br />
|
|
14
|
+
<%= f.password_field :password, :autocomplete => "off", class: "form-control" %>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="form-group">
|
|
17
|
+
<%= f.label :password_confirmation %><br />
|
|
18
|
+
<%= f.password_field :password_confirmation, class: "form-control" %>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="form-group">
|
|
21
|
+
<%= f.label :current_password %> <i>(<%= t('.we_need_your_current_password_to_confirm_your_changes', :default => 'we need your current password to confirm your changes') %>)</i>
|
|
22
|
+
<%= f.password_field :current_password, class: "form-control" %>
|
|
23
|
+
</div>
|
|
24
|
+
<%= f.submit t('.update', :default => "Update"), class: "btn btn-primary" %>
|
|
25
|
+
<% end %>
|
|
26
|
+
</div>
|
|
26
27
|
</div>
|
|
27
28
|
|
|
28
29
|
<p><%= t('.unhappy', :default => 'Unhappy') %>? <%= link_to t('.cancel_my_account', :default => "Cancel my account"), registration_path(resource_name), :data => { :confirm => t('.are_you_sure', :default => "Are you sure?") }, :method => :delete %>.</p>
|
|
@@ -9,7 +9,7 @@ module DeviseBootstrapViewsHelper
|
|
|
9
9
|
|
|
10
10
|
html = <<-HTML
|
|
11
11
|
<div class="alert alert-danger alert-block">
|
|
12
|
-
<button type="button" class="close" data-dismiss="alert"
|
|
12
|
+
<button type="button" class="close" data-dismiss="alert">⨉</button>
|
|
13
13
|
<h5>#{sentence}</h4>
|
|
14
14
|
#{messages}
|
|
15
15
|
</div>
|
data/lib/version.rb
CHANGED
data/locales/en.yml
CHANGED
|
@@ -56,7 +56,7 @@ en:
|
|
|
56
56
|
edit:
|
|
57
57
|
are_you_sure: "Are you sure?"
|
|
58
58
|
cancel_my_account: "Cancel my account"
|
|
59
|
-
leave_blank_if_you_don_t_want_to_change_it: "leave blank if you
|
|
59
|
+
leave_blank_if_you_don_t_want_to_change_it: "leave blank if you don't want to change it"
|
|
60
60
|
title: "Edit %{resource}"
|
|
61
61
|
we_need_your_current_password_to_confirm_your_changes: "we need your current password to confirm your changes"
|
|
62
62
|
update: "Update"
|
|
@@ -107,4 +107,4 @@ en:
|
|
|
107
107
|
current_sign_in_at: "Signed in at"
|
|
108
108
|
email: "Email"
|
|
109
109
|
password: "Password"
|
|
110
|
-
last_sign_in_at: "Last signed in at"
|
|
110
|
+
last_sign_in_at: "Last signed in at"
|
data/locales/pt-BR.yml
CHANGED
|
@@ -20,7 +20,7 @@ pt-BR:
|
|
|
20
20
|
action: Desbloquear minha conta
|
|
21
21
|
greeting: Olá %{recipient}!
|
|
22
22
|
instruction: ! 'Clique no link abaixo para desbloquear sua conta:'
|
|
23
|
-
message: Sua conta foi bloqueada devido ao excessivo número de tentativas acesso inválidas.
|
|
23
|
+
message: Sua conta foi bloqueada devido ao excessivo número de tentativas de acesso inválidas.
|
|
24
24
|
subject: Instruções de desbloqueio
|
|
25
25
|
passwords:
|
|
26
26
|
new:
|
|
@@ -42,10 +42,10 @@ pt-BR:
|
|
|
42
42
|
links:
|
|
43
43
|
didn_t_receive_confirmation_instructions: Não recebeu instruções de confirmação?
|
|
44
44
|
didn_t_receive_unlock_instructions: Não recebeu instruções de desbloqueio?
|
|
45
|
-
forgot_your_password:
|
|
45
|
+
forgot_your_password: Esqueceu sua senha?
|
|
46
46
|
sign_in: Login
|
|
47
47
|
sign_in_with_provider: Entrar com %{provider}
|
|
48
48
|
sign_up: Inscrever-se
|
|
49
49
|
unlocks:
|
|
50
50
|
new:
|
|
51
|
-
resend_unlock_instructions:
|
|
51
|
+
resend_unlock_instructions: Reenviar instruções de desbloqueio
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yinghai Zhao
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
version: '0'
|
|
107
107
|
requirements: []
|
|
108
108
|
rubyforge_project:
|
|
109
|
-
rubygems_version: 2.
|
|
109
|
+
rubygems_version: 2.2.2
|
|
110
110
|
signing_key:
|
|
111
111
|
specification_version: 4
|
|
112
112
|
summary: Devise Bootstrap views with i18n support.
|