mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 20:38:48 +01:00
fix mobile feed page and speed up mobile home page
This commit is contained in:
parent
db0f00c9a4
commit
8ede8030d3
3 changed files with 13 additions and 4 deletions
|
|
@ -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? }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue