mirror of
https://github.com/Readarr/Readarr
synced 2026-01-02 05:37:45 +01:00
20 lines
No EOL
463 B
JavaScript
20 lines
No EOL
463 B
JavaScript
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;
|
|
}
|
|
}); |