Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
27 lines
No EOL
1 KiB
JavaScript
27 lines
No EOL
1 KiB
JavaScript
define([
|
|
'require',
|
|
'exports',
|
|
'module',
|
|
'debug',
|
|
'view'
|
|
], function (require, exports, module) {
|
|
'use strict';
|
|
var debug = require('debug')('view:indicators');
|
|
var View = require('view');
|
|
module.exports = View.extend({
|
|
name: 'indicators',
|
|
tag: 'ul',
|
|
initialize: function () {
|
|
this.render();
|
|
},
|
|
render: function () {
|
|
this.el.innerHTML = this.template();
|
|
delete this.template;
|
|
debug('rendered');
|
|
return this;
|
|
},
|
|
template: function () {
|
|
return '<li class="indicator_countdown rotates" data-icon="self-timer" ' + 'data-l10n-id="self-timer-indicator"></li>' + '<li class="indicator_hdr rotates" data-icon="hdr" ' + 'data-l10n-id="hdr-indicator"></li>' + '<li class="indicator_geolocation rotates" data-icon="location" ' + 'data-l10n-id="location-indicator"></li>' + '<li class="indicator_battery rotates" data-icon="battery-3" ' + 'data-l10n-id="battery-low-indicator"></li>';
|
|
}
|
|
});
|
|
}); |