Skip to content
Permalink
Browse files

step-9 checkmark helper

  • Loading branch information...
204NoContent committed Apr 9, 2014
1 parent 6337327 commit 29943da94ce87dd2f24c1fcb761bd15a36f986b6
@@ -0,0 +1,3 @@
PhonesHelper = {
checkmark: function (truthy) { return truthy ? '\u2713' : '\u2718'; }
};
@@ -91,9 +91,9 @@ __p+='<li>\n <span>Availability and Networks</span>\n <dl>\n <dt>Av
'</dd>\n <dt>Bluetooth</dt>\n <dd>'+
((__t=( get('connectivity').bluetooth ))==null?'':_.escape(__t))+
'</dd>\n <dt>Infrared</dt>\n <dd>'+
((__t=( get('connectivity').infrared ))==null?'':_.escape(__t))+
((__t=( PhonesHelper.checkmark(get('connectivity').infrared) ))==null?'':_.escape(__t))+
'</dd>\n <dt>GPS</dt>\n <dd>'+
((__t=( get('connectivity').gps ))==null?'':_.escape(__t))+
((__t=( PhonesHelper.checkmark(get('connectivity').gps) ))==null?'':_.escape(__t))+
'</dd>\n </dl>\n</li>\n\n<li>\n <span>Android</span>\n <dl>\n <dt>OS Version</dt>\n <dd>'+
((__t=( get('android').os ))==null?'':_.escape(__t))+
'</dd>\n <dt>UI</dt>\n <dd>'+
@@ -111,17 +111,17 @@ __p+='\n <dt>Weight</dt>\n <dd>'+
'</dd>\n <dt>Screen resolution</dt>\n <dd>'+
((__t=( get('display').screenResolution ))==null?'':_.escape(__t))+
'</dd>\n <dt>Touch screen</dt>\n <dd>'+
((__t=( get('display').touchScreen ))==null?'':_.escape(__t))+
((__t=( PhonesHelper.checkmark(get('display').touchScreen) ))==null?'':_.escape(__t))+
'</dd>\n </dl>\n</li>\n\n<li>\n <span>Hardware</span>\n <dl>\n <dt>CPU</dt>\n <dd>'+
((__t=( get('hardware').cpu ))==null?'':_.escape(__t))+
'</dd>\n <dt>USB</dt>\n <dd>'+
((__t=( get('hardware').usb ))==null?'':_.escape(__t))+
'</dd>\n <dt>Audio / headphone jack</dt>\n <dd>'+
((__t=( get('hardware').audioJack ))==null?'':_.escape(__t))+
'</dd>\n <dt>FM Radio</dt>\n <dd>'+
((__t=( get('hardware').fmRadio ))==null?'':_.escape(__t))+
((__t=( PhonesHelper.checkmark(get('hardware').fmRadio) ))==null?'':_.escape(__t))+
'</dd>\n <dt>Accelerometer</dt>\n <dd>'+
((__t=( get('hardware').accelerometer ))==null?'':_.escape(__t))+
((__t=( PhonesHelper.checkmark(get('hardware').accelerometer) ))==null?'':_.escape(__t))+
'</dd>\n </dl>\n</li>\n\n<li>\n <span>Camera</span>\n <dl>\n <dt>Primary</dt>\n <dd>'+
((__t=( get('camera').primary ))==null?'':_.escape(__t))+
'</dd>\n <dt>Features</dt>\n <dd>'+
@@ -38,9 +38,9 @@
<dt>Bluetooth</dt>
<dd>[[= get('connectivity').bluetooth ]]</dd>
<dt>Infrared</dt>
<dd>[[= get('connectivity').infrared ]]</dd>
<dd>[[= PhonesHelper.checkmark(get('connectivity').infrared) ]]</dd>
<dt>GPS</dt>
<dd>[[= get('connectivity').gps ]]</dd>
<dd>[[= PhonesHelper.checkmark(get('connectivity').gps) ]]</dd>
</dl>
</li>

@@ -74,7 +74,7 @@
<dt>Screen resolution</dt>
<dd>[[= get('display').screenResolution ]]</dd>
<dt>Touch screen</dt>
<dd>[[= get('display').touchScreen ]]</dd>
<dd>[[= PhonesHelper.checkmark(get('display').touchScreen) ]]</dd>
</dl>
</li>

@@ -88,9 +88,9 @@
<dt>Audio / headphone jack</dt>
<dd>[[= get('hardware').audioJack ]]</dd>
<dt>FM Radio</dt>
<dd>[[= get('hardware').fmRadio ]]</dd>
<dd>[[= PhonesHelper.checkmark(get('hardware').fmRadio) ]]</dd>
<dt>Accelerometer</dt>
<dd>[[= get('hardware').accelerometer ]]</dd>
<dd>[[= PhonesHelper.checkmark(get('hardware').accelerometer) ]]</dd>
</dl>
</li>

@@ -29,6 +29,8 @@
<script src="/javascripts/views/phones/index_list_view.js"></script>
<script src="/javascripts/views/phones/index_list_phone_view.js"></script>

<script src="/javascripts/helpers/phones_helper.js"></script>

<script src="/javascripts/router.js"></script>
<script src="/javascripts/init.js"></script>
</head>

0 comments on commit 29943da

Please sign in to comment.
You can’t perform that action at this time.