mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Changelog will only show updates with notable changes
This commit is contained in:
@@ -34,10 +34,9 @@ namespace NzbDrone.Core.Update
|
|||||||
{
|
{
|
||||||
var restClient = new RestClient(Services.RootUrl);
|
var restClient = new RestClient(Services.RootUrl);
|
||||||
|
|
||||||
var request = new RestRequest("/v1/update/{branch}/all");
|
var request = new RestRequest("/v1/update/{branch}/changes");
|
||||||
|
|
||||||
request.AddUrlSegment("branch", branch);
|
request.AddUrlSegment("branch", branch);
|
||||||
request.AddParameter("limit", 5);
|
|
||||||
|
|
||||||
var updates = restClient.ExecuteAndValidate<List<UpdatePackage>>(request);
|
var updates = restClient.ExecuteAndValidate<List<UpdatePackage>>(request);
|
||||||
|
|
||||||
|
|||||||
@@ -57,10 +57,10 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (seasonCount === 1) {
|
if (seasonCount === 1) {
|
||||||
return new Handlebars.SafeString('<span class="label label-info">{0} Season</span>'.format(seasonCount))
|
return new Handlebars.SafeString('<span class="label label-info">{0} Season</span>'.format(seasonCount));
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Handlebars.SafeString('<span class="label label-info">{0} Seasons</span>'.format(seasonCount))
|
return new Handlebars.SafeString('<span class="label label-info">{0} Seasons</span>'.format(seasonCount));
|
||||||
});
|
});
|
||||||
|
|
||||||
Handlebars.registerHelper('titleWithYear', function () {
|
Handlebars.registerHelper('titleWithYear', function () {
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
define(
|
||||||
|
[
|
||||||
|
'handlebars'
|
||||||
|
], function (Handlebars) {
|
||||||
|
|
||||||
|
Handlebars.registerHelper('currentVersion', function (version) {
|
||||||
|
var currentVersion = window.NzbDrone.ServerStatus.version;
|
||||||
|
|
||||||
|
if (currentVersion === version)
|
||||||
|
{
|
||||||
|
return new Handlebars.SafeString('<i class="icon-ok" title="Installed"></i>');
|
||||||
|
}
|
||||||
|
|
||||||
|
return '';
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -9,6 +9,7 @@ define(
|
|||||||
'Handlebars/Helpers/Episode',
|
'Handlebars/Helpers/Episode',
|
||||||
'Handlebars/Helpers/Series',
|
'Handlebars/Helpers/Series',
|
||||||
'Handlebars/Helpers/Quality',
|
'Handlebars/Helpers/Quality',
|
||||||
|
'Handlebars/Helpers/Version',
|
||||||
'Handlebars/Handlebars.Debug'
|
'Handlebars/Handlebars.Debug'
|
||||||
], function (Templates) {
|
], function (Templates) {
|
||||||
return function () {
|
return function () {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div class="update">
|
<div class="update">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{version}} <span class="date">- {{ShortDate releaseDate}}</span></legend>
|
<legend>{{version}} <span class="date">- {{ShortDate releaseDate}} {{currentVersion version}}</span></legend>
|
||||||
|
|
||||||
{{#with changes}}
|
{{#with changes}}
|
||||||
{{#each new}}
|
{{#each new}}
|
||||||
|
|||||||
Reference in New Issue
Block a user