'use strict'; define( [ 'Cells/NzbDroneCell' ], function (NzbDroneCell) { return NzbDroneCell.extend({ className: 'queue-status-cell', render: function () { this.$el.empty(); if (this.cellValue) { var status = this.cellValue.get('status').toLowerCase(); var icon = 'icon-nd-downloading'; var title = 'Downloading'; if (status === 'paused') { icon = 'icon-pause'; title = 'Paused'; } if (status === 'queued') { icon = 'icon-cloud'; title = 'Queued'; } if (status === 'completed') { icon = 'icon-inbox'; title = 'Downloaded'; } this.$el.html(''.format(icon, title)); } return this; } }); });