Skip to content

Commit

Permalink
updated top-menu for login/logout to new named routes. also renamed *…
Browse files Browse the repository at this point in the history
….rhtml.erb to *.rhtml for consistency. also deleted old login/signup files and changed new ones to have same layout as old ones.
  • Loading branch information
bakkdoor committed Sep 5, 2008
1 parent e98585b commit 683a27b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 55 deletions.
18 changes: 0 additions & 18 deletions src/app/views/account/login.rhtml

This file was deleted.

19 changes: 0 additions & 19 deletions src/app/views/account/signup.rhtml

This file was deleted.

6 changes: 3 additions & 3 deletions src/app/views/layouts/application.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<div id="loginlogout" class="loginlogout">
<% if logged_in? %>
<%= l(:logged_in_as) %> <%= link_to current_user.login, :controller => "account" %>
| <%= link_to "Logout", :controller => "account", :action => "logout" %>
| <%= link_to "Logout", logout_url %>
<% else %>
<%= link_to l(:sign_up), :controller => "account", :action => "signup" %> |
<%= link_to l(:login), :controller => "account", :action => "login" %>
<%= link_to l(:sign_up), signup_url %> |
<%= link_to l(:login), login_url %>
<% end %>
</div>
<div id="menu" class="menu">
Expand Down
15 changes: 0 additions & 15 deletions src/app/views/sessions/new.html.erb

This file was deleted.

18 changes: 18 additions & 0 deletions src/app/views/sessions/new.rhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="headline">
<%= l :please_enter_your_login_data %>:
</div>
<div class="loginarea">
<% form_tag session_path do -%>
<p><%= label_tag 'login', (l :username) %><br />
<%= text_field_tag 'login', @login %></p>

<p><%= label_tag 'password', (l :password) %><br/>
<%= password_field_tag 'password', nil %></p>

<p><%= label_tag 'remember_me', (l :remember_me) %>
<%= check_box_tag 'remember_me', '1', @remember_me %></p>


<p><%= submit_tag 'Log in' %></p>
<% end -%>
</div>
File renamed without changes.
File renamed without changes.

0 comments on commit 683a27b

Please sign in to comment.