var NzbDroneCell = require('../../Cells/NzbDroneCell'); module.exports = NzbDroneCell.extend({ className : 'backup-type-cell', render : function() { this.$el.empty(); var icon = 'icon-time'; var title = 'Scheduled'; var type = this.model.get(this.column.get('name')); if (type === 'manual') { icon = 'icon-book'; title = 'Manual'; } else if (type === 'update') { icon = 'icon-retweet'; title = 'Before update'; } this.$el.html(''.format(icon, title)); return this; } });