mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 01:38:24 +00:00
Updated legend with number of movies
This commit is contained in:
parent
c734e8bc7e
commit
48559cf964
2 changed files with 13 additions and 13 deletions
|
@ -11,14 +11,14 @@
|
|||
<div class="row">
|
||||
<div class="series-stats col-sm-4">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Series</dt>
|
||||
<dt>Movies</dt>
|
||||
<dd>{{series}}</dd>
|
||||
|
||||
<dt>Ended</dt>
|
||||
<dd>{{ended}}</dd>
|
||||
<dt>Released</dt>
|
||||
<dd>{{released}}</dd>
|
||||
|
||||
<dt>Continuing</dt>
|
||||
<dd>{{continuing}}</dd>
|
||||
<dt>Announced</dt>
|
||||
<dd>{{announced}}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -281,18 +281,18 @@ module.exports = Marionette.Layout.extend({
|
|||
var series = MoviesCollection.models.length;
|
||||
var episodes = 0;
|
||||
var episodeFiles = 0;
|
||||
var ended = 0;
|
||||
var continuing = 0;
|
||||
var announced = 0;
|
||||
var released = 0;
|
||||
var monitored = 0;
|
||||
|
||||
_.each(MoviesCollection.models, function(model) {
|
||||
episodes += model.get('episodeCount');
|
||||
episodeFiles += model.get('episodeFileCount');
|
||||
|
||||
if (model.get('status').toLowerCase() === 'ended') {
|
||||
ended++;
|
||||
if (model.get('status').toLowerCase() === 'released') {
|
||||
released++;
|
||||
} else {
|
||||
continuing++;
|
||||
announced++;
|
||||
}
|
||||
|
||||
if (model.get('monitored')) {
|
||||
|
@ -302,9 +302,9 @@ module.exports = Marionette.Layout.extend({
|
|||
|
||||
footerModel.set({
|
||||
series : series,
|
||||
ended : ended,
|
||||
continuing : continuing,
|
||||
monitored : monitored,
|
||||
released : released,
|
||||
announced : announced,
|
||||
monitored : monitored,
|
||||
unmonitored : series - monitored,
|
||||
episodes : episodes,
|
||||
episodeFiles : episodeFiles
|
||||
|
|
Loading…
Reference in a new issue