mirror of https://github.com/lidarr/Lidarr
Cleaned up queue table a bit.
This commit is contained in:
parent
fc3ad9023d
commit
76089b460c
|
@ -12,7 +12,7 @@ namespace NzbDrone.Api.Queue
|
||||||
public QualityModel Quality { get; set; }
|
public QualityModel Quality { get; set; }
|
||||||
public Decimal Size { get; set; }
|
public Decimal Size { get; set; }
|
||||||
public String Title { get; set; }
|
public String Title { get; set; }
|
||||||
public Decimal SizeLeft { get; set; }
|
public Decimal Sizeleft { get; set; }
|
||||||
public TimeSpan Timeleft { get; set; }
|
public TimeSpan Timeleft { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace NzbDrone.Core.Queue
|
||||||
public QualityModel Quality { get; set; }
|
public QualityModel Quality { get; set; }
|
||||||
public Decimal Size { get; set; }
|
public Decimal Size { get; set; }
|
||||||
public String Title { get; set; }
|
public String Title { get; set; }
|
||||||
public Decimal SizeLeft { get; set; }
|
public Decimal Sizeleft { get; set; }
|
||||||
public TimeSpan Timeleft { get; set; }
|
public TimeSpan Timeleft { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace NzbDrone.Core.Queue
|
||||||
queue.Quality = remoteEpisode.ParsedEpisodeInfo.Quality;
|
queue.Quality = remoteEpisode.ParsedEpisodeInfo.Quality;
|
||||||
queue.Title = queueItem.Title;
|
queue.Title = queueItem.Title;
|
||||||
queue.Size = queueItem.Size;
|
queue.Size = queueItem.Size;
|
||||||
queue.SizeLeft = queueItem.SizeLeft;
|
queue.Sizeleft = queueItem.SizeLeft;
|
||||||
queue.Timeleft = queueItem.Timeleft;
|
queue.Timeleft = queueItem.Timeleft;
|
||||||
queued.Add(queue);
|
queued.Add(queue);
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,3 +92,8 @@ td.episode-status-cell, td.quality-cell {
|
||||||
.series-actions-cell {
|
.series-actions-cell {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeleft-cell {
|
||||||
|
cursor: default;
|
||||||
|
width: 80px;
|
||||||
|
}
|
|
@ -6,7 +6,7 @@ define(
|
||||||
], function (NzbDroneCell) {
|
], function (NzbDroneCell) {
|
||||||
return NzbDroneCell.extend({
|
return NzbDroneCell.extend({
|
||||||
|
|
||||||
className: 'history-event-type-cell',
|
className: 'timeleft-cell',
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
this.$el.empty();
|
this.$el.empty();
|
||||||
|
@ -15,10 +15,10 @@ define(
|
||||||
|
|
||||||
var timeleft = this.cellValue.get('timeleft');
|
var timeleft = this.cellValue.get('timeleft');
|
||||||
var size = this.cellValue.get('size');
|
var size = this.cellValue.get('size');
|
||||||
var sizeLeft = this.cellValue.get('sizeLeft');
|
var sizeleft = this.cellValue.get('sizeleft');
|
||||||
|
|
||||||
this.$el.html(timeleft);
|
this.$el.html(timeleft);
|
||||||
this.$el.attr('title', '{0} MB / {1} MB'.format(sizeLeft, size));
|
this.$el.attr('title', '{0} MB / {1} MB'.format(sizeleft, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue