From 0607eedb15d9c066d9fae2ba19cc671203127c1c Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Thu, 30 Aug 2012 14:30:07 +0400 Subject: [PATCH] [refs #626] Set invites redirect add register link to top menu --- app/views/layouts/tour.html.haml | 3 ++- config/routes.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/tour.html.haml b/app/views/layouts/tour.html.haml index 1f0a486bc..c02d56642 100644 --- a/app/views/layouts/tour.html.haml +++ b/app/views/layouts/tour.html.haml @@ -34,6 +34,7 @@ .a= link_to t('layout.logout'), destroy_user_session_path, :method => :delete - else .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 .right .both @@ -55,4 +56,4 @@ bg_alpha : 0.5, piro_scroll : true //pirobox always positioned at the center of the page }); - }); \ No newline at end of file + }); diff --git a/config/routes.rb b/config/routes.rb index f680bfbf0..f1788d751 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,6 +15,7 @@ Rosa::Application.routes.draw do get '/forbidden' => 'pages#forbidden', :as => 'forbidden' get '/terms-of-service' => 'pages#tos', :as => 'tos' 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/ if APP_CONFIG['anonymous_access']