added link to Click Me topic in logged out menu, and made it the place you go when you log in
This commit is contained in:
parent
c29c1b9e5d
commit
8167708383
2 changed files with 3 additions and 2 deletions
|
@ -22,10 +22,10 @@ class SessionsController < ApplicationController
|
||||||
|
|
||||||
@user = User.new
|
@user = User.new
|
||||||
|
|
||||||
@map = Map.first(:conditions => [ "id = ?", 5])
|
@topic = Topic.find(260)
|
||||||
|
|
||||||
if @map
|
if @map
|
||||||
respond_with(@user, @session, location: map_url(@map)) do |format|
|
respond_with(@user, @session, location: topic_url(@topic)) do |format|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
respond_with(@user, @session, location: root_url) do |format|
|
respond_with(@user, @session, location: root_url) do |format|
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
<li class="first"><a href="http://blog.metamaps.cc" target="_blank">About</a></li>
|
<li class="first"><a href="http://blog.metamaps.cc" target="_blank">About</a></li>
|
||||||
<li><a href="/request">Request Invite</a></li>
|
<li><a href="/request">Request Invite</a></li>
|
||||||
<li><%= link_to "Explore Maps", maps_url %></li>
|
<li><%= link_to "Explore Maps", maps_url %></li>
|
||||||
|
<li><%= link_to "Tour", "/topics/260" %></li>
|
||||||
<li class="last"><%= link_to "Login", new_session_path, id: "Login" %></li>
|
<li class="last"><%= link_to "Login", new_session_path, id: "Login" %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue