Mobile UI fixes

This fixes issues with mobile UI rendering

Issues fixed:
* vendor/bootstrap.css and vendor/bootstrap-responsive.css need to
  be precompiled for the mobile UI to render properly
* Rails 3.1 is more strict about layout fallbacks, the single-post
  view in the mobile UI needs to have the "application" layout
  specified to render properly
This commit is contained in:
Steven Hancock 2012-03-29 04:51:00 -07:00
parent 731446e078
commit 6abe718227
2 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class PostsController < ApplicationController
respond_to do |format|
format.xml{ render :xml => @post.to_diaspora_xml }
format.mobile{render 'posts/show.mobile.haml'}
format.mobile{render 'posts/show.mobile.haml', :layout => "application"}
format.json{ render :json => PostPresenter.new(@post, current_user).to_json }
format.any{render 'posts/show.html.haml'}
end

View file

@ -82,7 +82,8 @@ module Diaspora
# Stylesheets
config.assets.precompile += [ "blueprint.css", "bootstrap.css", "default.css",
"login.css", "mobile.css", "new-templates.css", "rtl.css" ]
"login.css", "mobile.css", "new-templates.css", "rtl.css", "vendor/bootstrap.css",
"vendor/bootstrap-responsive.css" ]
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'