-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bianca
committed
Mar 12, 2020
1 parent
86be619
commit 2012900
Showing
29 changed files
with
57 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,4 @@ def dashboard | |
@bookings_out = Booking.where(user_id: current_user.id) | ||
end | ||
|
||
def home | ||
end | ||
|
||
def about | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,26 @@ | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%- if controller_name != 'sessions' && !user_signed_in? %> | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Log in", new_session_path(resource_name), class: "btn btn-primary btn-block" %> | ||
</div> | ||
<%= link_to "Log in", new_session_path(resource_name), class: "btn btn-outline-primary" %> | ||
<% end %> | ||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Sign up", new_registration_path(resource_name), class: "btn btn-primary btn-block" %> | ||
</div> | ||
<%= link_to "Sign up", new_registration_path(resource_name), class: "btn btn-outline-primary" %> | ||
<% end %> | ||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Forgot your password?", new_password_path(resource_name), class: "btn btn-primary btn-block" %> | ||
</div> | ||
<%= link_to "Forgot your password?", new_password_path(resource_name), class: "btn btn-outline-primary" %> | ||
<% end %> | ||
<%- if user_signed_in? && controller_name == 'registrations' %> | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Change password", edit_password_path(resource_name), class: "btn btn-primary btn-block" %> | ||
</div> | ||
<%= link_to "Change password", edit_password_path(resource_name), class: "btn btn-outline-primary" %> | ||
<% end %> | ||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: "btn btn-primary btn-block" %> | ||
</div> | ||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: "btn btn-outline-primary" %> | ||
<% end %> | ||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name), class: "btn btn-primary btn-block" %> | ||
</div> | ||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name), class: "btn btn-outline-primary" %> | ||
<% end %> | ||
<%- if devise_mapping.omniauthable? %> | ||
<%- resource_class.omniauth_providers.each do |provider| %> | ||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), class: "btn btn-primary btn-block" %> | ||
</div> | ||
<%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), class: "btn btn-outline-primary" %> | ||
<% end %> | ||
<% end %> | ||
|
||
<div class="form-group row d-flex justify-content-around"> | ||
<%= link_to "Back", :back , class: "btn btn-primary btn-block" %> | ||
<%= link_to "Back", :back , class: "btn btn-outline-primary" %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
<h1>Editing </h1> | ||
|
||
<%= render 'form', kitten: @kitten %> | ||
<%= link_to 'Show', @kitten %> | | ||
<%= link_to 'Back', kittens_path %> | ||
<% @page_title = "Editing #{@kitten.name}" %> | ||
<%= render 'form', kitten: @kitten %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
<h1>New Kitten</h1> | ||
|
||
<%= render 'form', kitten: @kitten %> | ||
<%= link_to 'Back', kittens_path %> | ||
<% @page_title = "New Kitten" %> | ||
<%= render 'form', kitten: @kitten %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.