Refactor for mobile deployment

This commit is contained in:
2014-08-19 12:44:15 +02:00
parent 268c5aabb9
commit 0e46633c73
27 changed files with 848 additions and 41 deletions
@@ -1,6 +1,6 @@
Ember.Handlebars.helper 'image_tag', (path, options={})->
alt = options.hash.alt || ''
image_path = if path.substring(0,4) == 'http' then path else "/assets/#{path}"
image_path = if path.substring(0,4) == 'http' then path else "#{$assets_path}#{path}"
extra_attributes = ''
extra_attributes += " width=\"#{options.hash.width}\"" if options.hash.width
extra_attributes += " height=\"#{options.hash.height}\"" if options.hash.height
@@ -5,4 +5,5 @@
#= require shared-ember-helpers/all
#= require ./app
#= require_tree .
@$assets_path = '/assets/';
@EmberENV = {FEATURES: {'query-params-new': true}}
@@ -4,7 +4,7 @@ header.top-menu
.menu-content
section.main-buttons
link-to 'index'
= image_tag 'icons/logo-small.png'
= image_tag 'user/logo-small.png'
if list.id
App.MenuItemView route="active_list"
App.MenuItemView route='table' route_param=list.table.id
@@ -1,6 +1,6 @@
.home-panel
.home-header= image_tag 'logo.png' width=100 height=115 alt="Logo"
.home-header= image_tag 'user/logo.png' width=100 height=115 alt="Logo"
.home-center
a{ action "scanQr" } href="#"= image_tag 'scan-logo.png' width=148 height=177 alt="Scan"
a{ action "scanQr" } href="#"= image_tag 'user/scan-logo.png' width=148 height=177 alt="Scan"
.home-footer
.home-footer-content