You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
'use strict';
|
|
define(
|
|
[
|
|
'backgrid',
|
|
'marionette',
|
|
'bootstrap'
|
|
], function (Backgrid, Marionette) {
|
|
|
|
return Backgrid.Cell.extend({
|
|
|
|
className: 'approval-status-cell',
|
|
template : 'Cells/ApprovalStatusCellTemplate',
|
|
|
|
|
|
render: function () {
|
|
|
|
var rejections = this.model.get(this.column.get('name'));
|
|
|
|
if (rejections.length === 0) {
|
|
return this;
|
|
}
|
|
|
|
this.templateFunction = Marionette.TemplateCache.get(this.template);
|
|
|
|
var html = this.templateFunction(rejections);
|
|
this.$el.html('<i class="icon-exclamation-sign"/>');
|
|
|
|
this.$el.popover({
|
|
content : html,
|
|
html : true,
|
|
trigger : 'hover',
|
|
title : 'Release Rejected',
|
|
placement: 'left',
|
|
container: this.$el
|
|
});
|
|
|
|
return this;
|
|
}
|
|
});
|
|
});
|