fixed home page difference between being logged in and logged out
This commit is contained in:
parent
6bdc6ec397
commit
35835fcc80
2 changed files with 10 additions and 3 deletions
|
@ -2248,8 +2248,8 @@ Metamaps.Filter = {
|
|||
|
||||
if (Metamaps.Active.Map) {
|
||||
onMap = true;
|
||||
passesMapper = true;
|
||||
}
|
||||
}
|
||||
else passesMapper = true; // for when you're on a topic page
|
||||
|
||||
Metamaps.Topics.each(function(topic) {
|
||||
var n = topic.get('node');
|
||||
|
|
|
@ -11,7 +11,14 @@ class MainController < ApplicationController
|
|||
@current = current_user
|
||||
|
||||
respond_to do |format|
|
||||
format.html { respond_with(@current) }
|
||||
format.html {
|
||||
if authenticated?
|
||||
@maps = Map.order("name ASC").find_all_by_user_id(@current.id)
|
||||
respond_with(@maps, @current)
|
||||
else
|
||||
respond_with(@current)
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue