2013-08-29 23:38:28 -04:00
|
|
|
/*global $, app, me*/
|
|
|
|
"use strict";
|
|
|
|
|
2013-08-20 13:45:06 -04:00
|
|
|
var _ = require('underscore');
|
2013-08-29 23:38:28 -04:00
|
|
|
var StrictView = require('strictview');
|
|
|
|
var templates = require('../templates');
|
2013-08-20 13:45:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
module.exports = StrictView.extend({
|
|
|
|
template: templates.includes.contactListItemResource,
|
|
|
|
classBindings: {
|
|
|
|
show: ''
|
|
|
|
},
|
|
|
|
contentBindings: {
|
|
|
|
jid: '.jid',
|
|
|
|
status: '.status'
|
|
|
|
},
|
|
|
|
initialize: function (opts) {
|
|
|
|
this.containerEl = opts.containerEl;
|
|
|
|
this.render();
|
|
|
|
},
|
|
|
|
render: function () {
|
|
|
|
this.subViewRender({context: {resource: this.model}});
|
|
|
|
this.handleBindings();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
});
|