mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 20:28:53 +00:00
Fixed login/logout route & link
This commit is contained in:
parent
325d1b5079
commit
eaadaf2a00
2 changed files with 4 additions and 4 deletions
|
|
@ -17,9 +17,9 @@
|
|||
|
||||
<div id="user-navigation">
|
||||
<ul class="wat-cf">
|
||||
<li><a href="#"><%= t("web-app-theme.profile", :default => "Profile") %></a></li>
|
||||
<li><a href="#"><%= t("web-app-theme.settings", :default => "Settings") %></a></li>
|
||||
<li><a href="/logout" class="logout"><%= t("web-app-theme.logout", :default => "Logout") %></a></li>
|
||||
<!--<li><a href="#"><%= t("web-app-theme.profile", :default => "Profile") %></a></li>
|
||||
<li><a href="#"><%= t("web-app-theme.settings", :default => "Settings") %></a></li>-->
|
||||
<li><%= link_to t("web-app-theme.logout", :default => "Logout"), destroy_user_session_path, :method => :delete, :class=>'logout' %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main-navigation">
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ HabitTracker::Application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
devise_for :users
|
||||
devise_for :users, :path => '', :path_names => { :sign_in => "login", :sign_out => "logout", :sign_up => "register" }
|
||||
resources :tokens,:only => [:create, :destroy]
|
||||
|
||||
# The priority is based upon order of creation:
|
||||
|
|
|
|||
Loading…
Reference in a new issue