1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

New: release name in manual search will link to info URL if available

This commit is contained in:
Mark McDowall
2014-08-10 22:54:31 -07:00
parent 135fb32bdb
commit 2008b32018
3 changed files with 33 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
'use strict';
define(
[
'Cells/NzbDroneCell'
], function (NzbDroneCell) {
return 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;
}
});
});