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.
Radarr/src/UI/Cells/ReleaseTitleCell.js

17 lines
468 B

var NzbDroneCell = require('./NzbDroneCell');
module.exports = NzbDroneCell.extend({
className : 'release-title-cell',
render : function(){
this.$el.empty();
var title = this.model.get('title');
var infoUrl = this.model.get('infoUrl');
if(infoUrl) {
this.$el.html('<a href="{0}">{1}</a>'.format(infoUrl, title));
}
else {
this.$el.html(title);
}
return this;
}
});