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;
}
});
});
+1 -1
View File
@@ -102,7 +102,7 @@ td.episode-status-cell, td.quality-cell {
}
}
.nzb-title-cell {
.release-title-cell {
max-width: 400px;
word-wrap: break-word;
}