Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added login link.

  • Loading branch information...
commit 450a13cd45783bb9a8bdcdaa35a1e1db40e5356f 1 parent 1fc8c8a
@lvterry authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/views/layouts/application.html.erb
View
5 app/views/layouts/application.html.erb
@@ -15,8 +15,11 @@
<div class="actions">
<% if current_user %>
<div class="greeting">Welcome, <%= link_to current_user.name, logout_path %>.</div>
+ <% else %>
+ <%= link_to 'Login', login_path, :class => 'button' %>
<% end %>
- <a href="<%= new_article_path %>" class="submit">Submit</a>
+
+ <%= link_to 'Submit', new_article_path, :class => 'button' %>
</div>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.