[refs #626] Set invites redirect add register link to top menu

This commit is contained in:
konstantin.grabar 2012-08-30 14:30:07 +04:00
parent f8b39af7d3
commit 0607eedb15
2 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@
.a= link_to t('layout.logout'), destroy_user_session_path, :method => :delete .a= link_to t('layout.logout'), destroy_user_session_path, :method => :delete
- else - else
.user .user
.profile= link_to t("layout.devise.shared_links.sign_up"), new_register_request_path
.profile= link_to t("layout.devise.shared_links.sign_in"), new_user_session_path .profile= link_to t("layout.devise.shared_links.sign_in"), new_user_session_path
.right .right
.both .both

View File

@ -15,6 +15,7 @@ Rosa::Application.routes.draw do
get '/forbidden' => 'pages#forbidden', :as => 'forbidden' get '/forbidden' => 'pages#forbidden', :as => 'forbidden'
get '/terms-of-service' => 'pages#tos', :as => 'tos' get '/terms-of-service' => 'pages#tos', :as => 'tos'
get '/tour/:id' => 'pages#tour_inside', :as => 'tour_inside', :id => /projects|sources|builds/ get '/tour/:id' => 'pages#tour_inside', :as => 'tour_inside', :id => /projects|sources|builds/
match '/invite.html' => redirect('/register_requests/new')
get '/activity_feeds.:format' => 'activity_feeds#index', :as => 'atom_activity_feeds', :format => /atom/ get '/activity_feeds.:format' => 'activity_feeds#index', :as => 'atom_activity_feeds', :format => /atom/
if APP_CONFIG['anonymous_access'] if APP_CONFIG['anonymous_access']