Skip to content

Commit

Permalink
done.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankhu1089 committed Aug 12, 2016
1 parent a630e1b commit 465bc63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<div id="page_wrapper">
<h2>Sign up</h2>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
Expand Down Expand Up @@ -27,3 +28,4 @@
<% end %>
<%= render "devise/shared/links" %>
</div>
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</ul>

<% if !user_signed_in? %>
<p class="sign_in">Admin Login</p>
<p class="sign_in"><%= link_to"Admin Login",new_user_session_path %><br><%= link_to "Sign Up",new_user_registration_path %></p>
<% end %>
</div>

Expand All @@ -50,7 +50,7 @@
<div class="buttons">

<button class="button"><%= link_to "New Post", new_post_path %></button>
<button class="button">Log Out</button>
<button class="button"><%= link_to "Log out", destroy_user_session_path, :method => :delete %></button>
</div>
<% end %>
</div>
Expand Down

0 comments on commit 465bc63

Please sign in to comment.