doctype html html lang="en" head meta charset="utf-8" meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" meta name="viewport" content="width=device-width, initial-scale=1.0" title= content_for?(:title) ? yield(:title) : application_title = csrf_meta_tags /! Le HTML5 shim, for IE6-8 support of HTML elements /[if lt IE 9] = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js" = stylesheet_link_tag "user/application", :media => "all" link href="/images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144" link href="/images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114" link href="/images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72" link href="/images/apple-touch-icon.png" rel="apple-touch-icon-precomposed" link href="/favicon.ico" rel="shortcut icon" javascript: //var data_host = 'http://data.qwaiter.com'; //var data_host = 'http://localhost:3000'; var data_host = 'http://192.168.1.74:3000'; var $locale = '#{I18n.locale}'; var $url_vars = null; // Dummy holder when Qmobile object is not supplied by the mobile phone var QMobile, Qwaiter, Quser; QMobile || (QMobile = { scanQr: function(){window.location = '/select_qrcode'}, activateRotation: function(){}, mobile: function(){return false}, authentication_string: function(){return this.authentication_string_storage || ''}, authentication_object: function(){return this.authentication_object_storage || '{}'}, setAuthToken: function(token){ this.authentication_string_storage = 'auth_token='+token; this.authentication_object_storage = '{"auth_token": "'+token+'"}' }, root_url: function(){return 'file:///Users/bterkuile/Documents/workspace/Qwaiter/assets'}, root_url: function(){return ''}, goHome: function(){ window.location = QMobile.root_url() + path_mapping['user_root'] + '.html'} }); //QMobile.setAuthToken('i5brDZ1HS1okoEq3pMyh'); body class=action_name .navbar.navbar-fixed-top .navbar-inner .container a.btn.btn-navbar data-target=".nav-collapse" data-toggle="collapse" span.icon-bar span.icon-bar span.icon-bar = link_to image_tag('icons/logo-small.png', alt: application_title), user_root_path, class: :brand .container.nav-collapse ul.nav#top-navigation-list li= link_to 'View history', user_list_history_path .container .content .alert.alert-error.hide button.close type="button" data-dismiss="alert" × div= flash[:alert] .alert.alert-success.hide button.close type="button" data-dismiss="alert" × div .row .span12 = yield /! Javascripts \================================================== /! Placed at the end of the document so the pages load faster = javascript_include_tag "user/application" = yield :footer javascript: $(function(){ $('[data-t]').each(function(){$(this).text(t($(this).attr('data-t')))}) });