fix mobile feed page and speed up mobile home page

This commit is contained in:
Reinier Balt 2008-08-01 14:49:51 +02:00
parent db0f00c9a4
commit 8ede8030d3
3 changed files with 13 additions and 4 deletions

View file

@ -4,7 +4,13 @@ class FeedlistController < ApplicationController
def index
@page_title = 'TRACKS::Feeds'
init_data_for_sidebar unless mobile?
unless mobile?
init_data_for_sidebar
else
@projects = current_user.projects
@contexts = current_user.contexts
end
@active_projects = @projects.select{ |p| p.active? }
@hidden_projects = @projects.select{ |p| p.hidden? }