Commit 5322fe1f

mo khan <mo@mokhan.ca>
2014-09-18 17:47:52
remove devise views.
1 parent bc2163c
app/views/devise/confirmations/new.html.erb
@@ -1,14 +0,0 @@
-<h1>C'mon In... </h1>
-<p>&quot;You don't make friends with salad&quot; - Homer Simpson<p>
-
-<h2>Resend confirmation instructions</h2>
-
-<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
-  <p><%= f.label :email %><br />
-  <%= f.email_field :email %></p>
-
-  <p><%= f.submit "Resend confirmation instructions" %></p>
-<% end %>
-
-<%= render :partial => "devise/shared/links" %>
-
app/views/devise/mailer/confirmation_instructions.html.erb
@@ -1,5 +0,0 @@
-<p>Welcome <%= @resource.email %>!</p>
-
-<p>You can confirm your account through the link below:</p>
-
-<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
app/views/devise/mailer/reset_password_instructions.html.erb
@@ -1,13 +0,0 @@
-<p>Hello <%= @resource.email %>!</p>
-
-<p>A requested has been made to change your password on CakeSide.com, and you can do this through the link below.</p>
-
-<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
-
-<p>If you didn't request this, please ignore this email.</p>
-<p>Your password won't change until you access the link above and create a new one.</p>
-<br/>
-<p>Regards,</p>
-<p>The CakeSide Team</p>
-<p>Your security and privacy is important to us so please <%= link_to "visit us", root_path %> if you have any questions?</p>
-
app/views/devise/mailer/unlock_instructions.html.erb
@@ -1,7 +0,0 @@
-<p>Hello <%= @resource.email %>!</p>
-
-<p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
-
-<p>Click the link below to unlock your account:</p>
-
-<p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
app/views/devise/passwords/edit.html.erb
@@ -1,27 +0,0 @@
-<div class="row-fluid">
-  <div class="span12">
-    <h1>Reset My Password</h1>
-    <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }, :class => "form-horizontal") do |f| %>
-      <fieldset>
-        <legend>Enter your new password and confirm it</legend>
-        <div class="control-group">
-          <%= f.label :password, "New password", :class => "control-label" %>
-          <div class="controls">
-            <%= f.password_field :password, :class=> "input-xlarge" %>
-          </div>
-        </div>
-        <div class="control-group">
-          <%= f.label :password_confirmation, "Confirm new password", :class => "control-label" %>
-          <div class="controls">
-            <%= f.password_field :password_confirmation, :class => "input-xlarge" %>
-          </div>
-        </div>
-        <div class="form-actions">
-          <%= f.hidden_field :reset_password_token %>
-          <%= f.submit "Change my password", :class => 'btn btn-primary' %>
-        </div>
-      </fieldset>
-    <% end %>
-  </div>
-</div>
-
app/views/devise/passwords/new.html.erb
@@ -1,24 +0,0 @@
-<div class="page-header">
-  <h1>Forgot your password? <small>don't worry, it happens</small></h1>
-</div>
-<div class="row-fluid">
-  <div class="span12">
-    <p> Type your email address below to reset your password. </p>
-
-    <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }, :class=> "form-horizontal") do |f| %>
-      <fieldset>
-        <legend>Type your email address below to reset your password.</legend>
-        <div class="control-group">
-          <%= f.label :email, :class => "control-label" %>
-          <div class="controls">
-            <%= f.email_field :email, :placeholder => "Email", :class => "input-xlarge" %>
-          </div>
-        </div>
-        <div class="actions">
-          <input type="submit" class="btn btn-primary" value="Send me reset password instructions">
-        </div>
-      </fieldset>
-    <% end %>
-    <%= render :partial => "devise/shared/links" %>
-  </div>
-</div>
app/views/devise/registrations/edit.html.erb
@@ -1,31 +0,0 @@
-<h1>C'mon In... </h1>
-<p>&quot;You don't make friends with salad&quot; - Homer Simpson<p>
-
-<div>Edit <%= resource_name.to_s.humanize %></div>
-
-<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
-  <%= devise_error_messages! %>
-
-  <p><%= f.label :name %><br />
-  <%= f.text_field :name %></p>
-
-  <p><%= f.label :email %><br />
-  <%= f.email_field :email %></p>
-
-  <p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
-  <%= f.password_field :password %></p>
-
-  <p><%= f.label :password_confirmation %><br />
-  <%= f.password_field :password_confirmation %></p>
-
-  <p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
-  <%= f.password_field :current_password %></p>
-
-  <p><%= f.submit "Update" %></p>
-<% end %>
-
-<div>Cancel my account</div>
-
-<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>
-
-<%= link_to "Back", :back %>
app/views/devise/registrations/new.html.erb
@@ -1,77 +0,0 @@
-<% content_for :javascript do %>
-<script type="text/javascript">
-  $(document).ready(function(){
-    $('#accepted').click(function(){
-      if( $('#accepted').is(':checked')){
-        $('#submit-registration').removeAttr('disabled');
-      }
-      else{
-        $('#submit-registration').attr('disabled', 'disabled');
-      }
-    });
-  });
-</script>
-    <% end %>
-    <div class="row-fluid">
-      <div class="span12">
-        <div class="row-fluid">
-          <div class="span6 hidden-phone">
-            <%= image_tag "cakeside-logo.png" %>
-            <div style="padding-left:10px;padding-right:10px;">
-              <h3>Why CakeSide?</h3>
-              <p>CakeSide is a community dedicated to giving cake artists, bakers, creators, hobbyists, and of course cake lovers a place to share ideas and creations. Explore your creativity and find your inspiration. Resources shared here are all user driven.</p>
-              <h3>About Us</h3>
-              <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="https://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
-            </div>
-          </div>
-          <div class="span6">
-            <%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "well form-inline"}) do |f| %>
-              <legend>Got an account? Login!</legend>
-              <%= f.email_field :email, :placeholder => 'Email', :class=> "input-medium" %>
-              <%= f.password_field :password, :placeholder => 'Password', :class=> "input-medium" %>
-              <%= f.submit "Sign In", :class => "btn" %>
-              <br />
-              <label for="checkbox" class="checkbox"><%= f.check_box :remember_me %> Remember me <%= link_to "Forgot your password?", new_password_path(resource_name) %></label>
-            <% end %>
-            <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class=> 'form-horizontal' }) do |f| %>
-              <fieldset>
-                <legend>New to CakeSide? Join Us!</legend>
-              </fieldset>
-              <div class="control-group">
-                <%= f.label :name, 'Full name', :class => "control-label" %>
-                <div class="controls">
-                  <%= f.text_field :name, :placeholder => 'required' %>
-                </div>
-              </div>
-              <div class="control-group">
-                <%= f.label :email, 'Email', :class => "control-label" %>
-                <div class="controls">
-                  <%= f.email_field :email, :placeholder => 'required' %>
-                </div>
-              </div>
-              <div class="control-group">
-                <%= f.label :password, 'Password', :class => "control-label" %>
-                <div class="controls">
-                  <%= f.password_field :password, :placeholder => 'required' %>
-                </div>
-              </div>
-              <div class="control-group">
-                <%= f.label :password_confirmation, 'Confirm password', :class => "control-label" %>
-                <div class="controls">
-                  <%= f.password_field :password_confirmation, :placeholder => 'required' %>
-                </div>
-              </div>
-              <div class="control-group">
-                <label for="accepted" class="control-label"></label>
-                <div class="controls">
-                  <input id="accepted" name="accepted" type="checkbox" value="" checked="checked" /> I have read the <a href="/terms.html">terms and conditions</a> and the <a href="/privacy.html">privacy policy</a>
-                </div>
-              </div>
-              <div class="form-actions">
-                <%= f.submit "Sign up", :id => 'submit-registration', :class=> "btn btn-primary" %>
-              </div>
-            <% end %>
-          </div>
-        </div>
-      </div>
-    </div>
app/views/devise/sessions/new.html.erb
@@ -1,77 +0,0 @@
-<% content_for :javascript do %>
-<script type="text/javascript">
-  $(document).ready(function(){
-    $('#accepted').click(function(){
-      if( $('#accepted').is(':checked')){
-        $('#submit-registration').removeAttr('disabled');
-      }
-      else{
-        $('#submit-registration').attr('disabled', 'disabled');
-      }
-    });
-  });
-</script>
-<% end %>
-<div class="row-fluid">
-  <div class="span12">
-    <div class="row-fluid">
-      <div class="span6 hidden-phone">
-        <%= image_tag "cakeside-logo.png" %>
-        <div style="padding-left:10px;padding-right:10px;">
-          <h3>Why CakeSide?</h3>
-          <p>CakeSide is a community dedicated to giving cake artists, bakers, creators, hobbyists, and of course cake lovers a place to share ideas and creations. Explore your creativity and find your inspiration. Resources shared here are all user driven.</p>
-          <h3>About Us</h3>
-          <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="https://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
-        </div>
-      </div>
-      <div class="span6">
-        <%= form_for(resource, :as => :user, :url => user_session_path, :html => { :class => "well form-inline"}) do |f| %>
-          <legend>Got an account? Login!</legend>
-          <%= f.email_field :email, :placeholder => 'Email', :class=> "input-medium" %>
-          <%= f.password_field :password, :placeholder => 'Password', :class=> "input-medium" %>
-          <%= f.submit "Sign In", :class => "btn" %>
-          <br />
-          <label for="checkbox" class="checkbox"><%= f.check_box :remember_me %> Remember me <%= link_to "Forgot your password?", new_password_path(:user) %></label>
-        <% end %>
-        <%= form_for(resource, :as => :user, :url => registration_path(:user), :html => { :class=> 'form-horizontal' }) do |f| %>
-          <fieldset>
-            <legend>New to CakeSide? Join Us!</legend>
-          </fieldset>
-          <div class="control-group">
-            <%= f.label :name, 'Full name', :class => "control-label" %>
-            <div class="controls">
-              <%= f.text_field :name, :placeholder => 'required' %>
-            </div>
-          </div>
-          <div class="control-group">
-            <%= f.label :email, 'Email', :class => "control-label" %>
-            <div class="controls">
-              <%= f.email_field :email, :placeholder => 'required' %>
-            </div>
-          </div>
-          <div class="control-group">
-            <%= f.label :password, 'Password', :class => "control-label" %>
-            <div class="controls">
-              <%= f.password_field :password, :placeholder => 'required' %>
-            </div>
-          </div>
-          <div class="control-group">
-            <%= f.label :password_confirmation, 'Confirm password', :class => "control-label" %>
-            <div class="controls">
-              <%= f.password_field :password_confirmation, :placeholder => 'required' %>
-            </div>
-          </div>
-          <div class="control-group">
-            <label for="accepted" class="control-label"></label>
-            <div class="controls">
-              <input id="accepted" name="accepted" type="checkbox" value="" checked="checked" /> I have read the <a href="/terms.html">terms and conditions</a> and the <a href="/privacy.html">privacy policy</a>
-            </div>
-          </div>
-          <div class="form-actions">
-            <%= f.submit "Sign up", :id => 'submit-registration', :class=> "btn btn-primary" %>
-          </div>
-        <% end %>
-      </div>
-    </div>
-  </div>
-</div>
app/views/devise/shared/_links.erb
@@ -1,25 +0,0 @@
-<%- if controller_name != 'sessions' %>
-  <%= link_to "Sign in", main_app.login_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 -%>
app/views/devise/unlocks/new.html.erb
@@ -1,15 +0,0 @@
-<h1>C'mon In... </h1>
-<p>&quot;You don't make friends with salad&quot; - Homer Simpson<p>
-
-<div>Resend unlock instructions</div>
-
-<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
-  <%= devise_error_messages! %>
-
-  <p><%= f.label :email %><br />
-  <%= f.email_field :email %></p>
-
-  <p><%= f.submit "Resend unlock instructions" %></p>
-<% end %>
-
-<%= render :partial => "devise/shared/links" %>