Skip to content
Extraits de code Groupes Projets
Valider c4a270ef rédigé par maxwell's avatar maxwell
Parcourir les fichiers

putting mobile interface back in so we can get it cleaned up

parent 40cc8294
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -3,9 +3,10 @@
# the COPYRIGHT file.
class ApplicationController < ActionController::Base
#has_mobile_fu
has_mobile_fu
protect_from_forgery :except => :receive
before_filter :mobile_except_ipad
before_filter :set_contacts_and_status, :except => [:create, :update]
before_filter :count_requests
before_filter :set_invites
......@@ -25,6 +26,12 @@ class ApplicationController < ActionController::Base
end
end
def mobile_except_ipad
if is_mobile_device?
session[:mobile_view] = false if request.env["HTTP_USER_AGENT"].include? "iPad"
end
end
def count_requests
@request_count = current_user.requests_for_me.size if current_user
end
......
......@@ -10,10 +10,9 @@
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
= javascript_include_tag 'vendor/jquery144.min'
= javascript_include_tag 'vendor/jquery.mobile-1.0a1.js', 'rails'
= stylesheet_link_tag 'vendor/jquery_mobile.min'
= stylesheet_link_tag 'mobile'
= javascript_include_tag 'vendor/jquery144.min','rails'
= include_javascripts :mobile
= stylesheet_link_tag 'mobile', 'vendor/jquery_mobile.min'
= csrf_meta_tag
= yield(:head)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter