Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

HAML ALL OF THE VIEWS

  • Loading branch information...
commit ef7526f9ee64be17c090224971082bce8be0c730 1 parent ead4446
@sj26 authored
View
BIN  app/assets/images/rails.png
Deleted file not rendered
View
28 app/views/devise/sessions/new.html.erb
@@ -1,28 +0,0 @@
-<h2>Sign in</h2>
-
-<p>Use any username and any password, your password will be saved for next time.</p>
-
-<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
- <fieldset>
- <div class="clearfix">
- <%= f.label :username %>
- <div class="input"><%= f.text_field :username %></div>
- </div>
- <div class="clearfix">
- <%= f.label :password %>
- <div class="input"><%= f.password_field :password %></div>
- </div>
- <div class="clearfix">
- <div class="input">
- <%= f.check_box :remember_me %>
- <span>Remember me</span>
- </div>
- </div>
- <div class="actions">
- <%= f.submit "Save changes", class: "btn primary" %>
- <button type="reset" class="btn">Cancel</button>
- </div>
- </fieldset>
-<% end %>
-
-<%= render :partial => "devise/shared/links" %>
View
18 app/views/devise/sessions/new.html.haml
@@ -0,0 +1,18 @@
+%h2 Sign in
+%p Use any username and any password, your password will be saved for next time.
+= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
+ %fieldset
+ .clearfix
+ = f.label :username
+ .input= f.text_field :username
+ .clearfix
+ = f.label :password
+ .input= f.password_field :password
+ .clearfix
+ .input.check_box
+ = f.check_box :remember_me
+ = f.label :remember_me
+ .actions
+ = f.submit "Save changes", class: "btn primary"
+ %button.btn{:type => "reset"} Cancel
+= render :partial => "devise/shared/links"
View
25 app/views/devise/shared/_links.erb
@@ -1,25 +0,0 @@
-<%- if controller_name != 'sessions' %>
- <%= link_to "Sign in", new_session_path(resource_name) %><br />
-<% end -%>
-
-<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
- <%= link_to "Sign up", new_registration_path(resource_name) %><br />
-<% end -%>
-
-<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
- <%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
-<% end -%>
-
-<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
- <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
-<% end -%>
-
-<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
- <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
-<% end -%>
-
-<%- if devise_mapping.omniauthable? %>
- <%- resource_class.omniauth_providers.each do |provider| %>
- <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
- <% end -%>
-<% end -%>
View
19 app/views/devise/shared/_links.haml
@@ -0,0 +1,19 @@
+- if controller_name != 'sessions'
+ = link_to "Sign in", new_session_path(resource_name)
+ %br/
+- if devise_mapping.registerable? && controller_name != 'registrations'
+ = link_to "Sign up", new_registration_path(resource_name)
+ %br/
+- if devise_mapping.recoverable? && controller_name != 'passwords'
+ = link_to "Forgot your password?", new_password_path(resource_name)
+ %br/
+- if devise_mapping.confirmable? && controller_name != 'confirmations'
+ = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
+ %br/
+- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
+ = link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
+ %br/
+- if devise_mapping.omniauthable?
+ - resource_class.omniauth_providers.each do |provider|
+ = link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)
+ %br/
Please sign in to comment.
Something went wrong with that request. Please try again.