'use strict'; define(['backgrid'], function (Backgrid) { return Backgrid.Cell.extend({ className : 'protocol-cell', render : function () { var protocol = this.model.get('protocol') || 'Unknown'; var label = '??'; if (protocol) { if (protocol === 'torrent') { label = 'torrent'; } else if (protocol === 'usenet') { label = 'nzb'; } this.$el.html('
{1}
'.format(protocol, label)); } this.delegateEvents(); return this; } }); });