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:
parent
731446e078
commit
6abe718227
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue