devise-bootstrap-views 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5990fae2bb0eb4db5ad582cb07cbc60a4c062faf
4
- data.tar.gz: da1f7022d6e1263ec1563caad604ad4b9335e5fe
3
+ metadata.gz: a556163d1bea0dc4a9ae72ddef4eaae4dae09b8a
4
+ data.tar.gz: 1cb32d0853e54cab96f680323bda080b6d629f73
5
5
  SHA512:
6
- metadata.gz: 46e843697bd5ef185302aa4d84393c24b7da97424f76853f95dbddcc09430aa56d0a1ac4aca8821a04a5c55123455ab3bfe9864db020b2303e22be45d7719fb9
7
- data.tar.gz: 95f0cbc768c00be286eccfee17f7a22a5f7106380a5b5331ae675fec73cf9a4948b0a147e0ff1586b208a3f28e0342fa3f7cd1930ebc4d57285f20d7a750a419
6
+ metadata.gz: 46d1d14e275d1dbabee79860bb3e94b6e1fc6a23f9f4ddb8f46c954e32db46f4223b32be2198bd13c91baebe6b175642318385b965dbf504ff91fff6ecd194d5
7
+ data.tar.gz: 824eed0b1099bec318d4716538543163e5b0e99f7476e9a11994d4f4ef5892b215eacd43457451824a789a7d6b058c216e249a34d0ba8b1d368137d48fb500a4
data/README.md CHANGED
@@ -24,8 +24,12 @@ And then execute:
24
24
 
25
25
  Add some minor css fix to your rails asset pipeline manifest
26
26
 
27
+ # SASS
27
28
  *= require devise_bootstrap_views
28
29
 
30
+ # LESS
31
+ *= require devise_bootstrap_views_less
32
+
29
33
  Then you need to install the required translations in your `config/locales`. You can do this either manually (downloading them from [devise-i18n-views/locales](https://github.com/mcasimir/devise-i18n-views/tree/master/locales)) or through the apposite generator `devise:views:locale`, eg.
30
34
 
31
35
  ``` sh
@@ -0,0 +1,10 @@
1
+ .float-none {
2
+ float: none;
3
+ }
4
+
5
+ .panel-heading {
6
+ padding: 15px;
7
+ h4 {
8
+ margin: 0px;
9
+ }
10
+ }
@@ -7,7 +7,7 @@
7
7
  <%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post, role: "form" }) do |f| %>
8
8
  <div class="form-group">
9
9
  <%= f.label :email %>
10
- <%= f.email_field :email, class: "form-control" %>
10
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
11
11
  </div>
12
12
 
13
13
  <%= f.submit t('.resend_confirmation_instructions', :default => 'Resend confirmation instructions'), class: "btn btn-primary" %>
@@ -15,4 +15,4 @@
15
15
  </div>
16
16
  </div>
17
17
 
18
- <%= render "devise/shared/links" %>o
18
+ <%= render "devise/shared/links" %>
@@ -3,4 +3,4 @@
3
3
  <p><%= t('.instruction', :default => "You can confirm your account email through the link below:") %></p>
4
4
 
5
5
  <p><%= link_to t('.action', :default => "Confirm my account"),
6
- confirmation_url(@resource, :confirmation_token => @resource.confirmation_token, locale: I18n.locale) %></p>
6
+ confirmation_url(@resource, :confirmation_token => @token, locale: I18n.locale) %></p>
@@ -9,7 +9,7 @@
9
9
 
10
10
  <div class="form-group">
11
11
  <%= f.label :password, t('.new_password', :default => 'New password') %>
12
- <%= f.password_field :password, class: "form-control" %>
12
+ <%= f.password_field :password, autofocus: true, class: "form-control" %>
13
13
  </div>
14
14
 
15
15
  <div class="form-group">
@@ -7,7 +7,7 @@
7
7
  <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, role: "form" }) do |f| %>
8
8
  <div class="form-group">
9
9
  <%= f.label :email %>
10
- <%= f.email_field :email, class: "form-control" %>
10
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
11
11
  </div>
12
12
 
13
13
  <%= f.submit t('.send_me_reset_password_instructions', :default => "Send me reset password instructions"), class: "btn btn-primary" %>
@@ -7,7 +7,7 @@
7
7
  <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
8
8
  <div class="form-group">
9
9
  <%= f.label :email %>
10
- <%= f.email_field :email, class: "form-control" %>
10
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
11
11
  </div>
12
12
  <div class="form-group">
13
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 />
@@ -7,7 +7,7 @@
7
7
  <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: { role: "form" }) do |f| %>
8
8
  <div class="form-group">
9
9
  <%= f.label :email %>
10
- <%= f.email_field :email, class: "form-control" %>
10
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
11
11
  </div>
12
12
  <div class="form-group">
13
13
  <%= f.label :password %><br />
@@ -7,7 +7,7 @@
7
7
  <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post, html: { role: "form" } }) do |f| %>
8
8
  <div class="form-group">
9
9
  <%= f.label :email %>
10
- <%= f.email_field :email, class: "form-control" %>
10
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
11
11
  </div>
12
12
  <%= f.submit t('.resend_unlock_instructions', :default => "Resend unlock instructions"), class: "btn btn-primary"%>
13
13
  <% end %>
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DeviseBootstrapViews
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yinghai Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-13 00:00:00.000000000 Z
11
+ date: 2015-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,7 @@ files:
52
52
  - Rakefile
53
53
  - Screenshot.png
54
54
  - app/assets/stylesheets/devise_bootstrap_views.scss
55
+ - app/assets/stylesheets/devise_bootstrap_views_less.less
55
56
  - app/views/devise/confirmations/new.html.erb
56
57
  - app/views/devise/mailer/confirmation_instructions.html.erb
57
58
  - app/views/devise/mailer/reset_password_instructions.html.erb
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  version: '0'
106
107
  requirements: []
107
108
  rubyforge_project:
108
- rubygems_version: 2.2.2
109
+ rubygems_version: 2.4.5
109
110
  signing_key:
110
111
  specification_version: 4
111
112
  summary: Devise Bootstrap views with i18n support.