New: Links (forums, trello, etc) shown in System: Info

pull/3113/head
Mark McDowall 10 years ago
parent 71e83ba8a8
commit 365898df45

@ -18,6 +18,7 @@ gulp.task('less', function () {
paths.src.root + 'Settings/settings.less',
paths.src.root + 'System/Logs/logs.less',
paths.src.root + 'System/Update/update.less',
paths.src.root + 'System/Info/info.less',
])
.pipe(print())
.pipe(less({
@ -29,4 +30,4 @@ gulp.task('less', function () {
}))
.on('error', errorHandler.onError)
.pipe(gulp.dest(paths.dest.content));
});
});

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Parser
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
private static readonly Regex SourceRegex = new Regex(@"\b(?:
(?<bluray>BluRay|Blu-Ray|HDDVD)|
(?<bluray>BluRay|Blu-Ray|HDDVD|BD)|
(?<webdl>WEB[-_. ]DL|WEBDL|WebRip|iTunesHD|WebHD)|
(?<hdtv>HDTV)|
(?<bdrip>BDRiP)|

@ -1,7 +1,7 @@
<fieldset>
<legend>About</legend>
<dl class="dl-horizontal">
<dl class="dl-horizontal info">
<dt>Version</dt>
<dd>{{version}}</dd>

@ -0,0 +1,9 @@
'use strict';
define(
[
'marionette'
], function (Marionette) {
return Marionette.ItemView.extend({
template: 'System/Info/MoreInfo/MoreInfoViewTemplate'
});
});

@ -0,0 +1,27 @@
<fieldset>
<legend>More Info</legend>
<dl class="dl-horizontal info">
<dt>Home page</dt>
<dd><a href="https://sonarr.tv/">sonarr.tv</a></dd>
<dt>Wiki</dt>
<dd><a href="https://wiki.sonarr.tv/">wiki.sonarr.tv</a></dd>
<dt>Forums</dt>
<dd><a href="https://forums.sonarr.tv/">forums.sonarr.tv</a></dd>
<dt>Twitter</dt>
<dd><a href="https://twitter.com/sonarrtv">@sonarrtv</a></dd>
<dt>IRC</dt>
<dd><a href="irc://irc.freenode.net/#sonarr">#sonarr on Freenode</a> or (<a href="http://webchat.freenode.net/?channels=#sonarr">webchat</a>)</dd>
<dt>Source</dt>
<dd><a href="https://github.com/Sonarr/Sonarr/">github.com/Sonarr/Sonarr</a></dd>
<dt>Feature Requests</dt>
<dd><a href="https://trello.com/b/MadvFKy4/sonarr">trello.com/b/MadvFKy4/sonarr</a></dd>
</dl>
</fieldset>

@ -5,25 +5,29 @@ define(
'marionette',
'System/Info/About/AboutView',
'System/Info/DiskSpace/DiskSpaceLayout',
'System/Info/Health/HealthLayout'
'System/Info/Health/HealthLayout',
'System/Info/MoreInfo/MoreInfoView'
], function (Backbone,
Marionette,
AboutView,
DiskSpaceLayout,
HealthLayout) {
HealthLayout,
MoreInfoView) {
return Marionette.Layout.extend({
template: 'System/Info/SystemInfoLayoutTemplate',
regions: {
about : '#about',
diskSpace: '#diskspace',
health : '#health'
about : '#about',
diskSpace : '#diskspace',
health : '#health',
moreInfo : '#more-info'
},
onRender: function () {
this.about.show(new AboutView());
this.diskSpace.show(new DiskSpaceLayout());
this.health.show(new HealthLayout());
this.diskSpace.show(new DiskSpaceLayout());
this.about.show(new AboutView());
this.moreInfo.show(new MoreInfoView());
}
});
});

@ -2,10 +2,14 @@
<div class="col-md-12" id="health"></div>
</div>
<div class="row">
<div class="col-md-12" id="diskspace"></div>
</div>
<div class="row">
<div class="col-md-12" id="about"></div>
</div>
<div class="row">
<div class="col-md-12" id="diskspace"></div>
</div>
<div class="col-md-12" id="more-info"></div>
</div>

@ -0,0 +1,5 @@
dl.info {
dt, dd {
padding-bottom: 5px;
}
}

@ -22,6 +22,8 @@
<link href="/Content/calendar.css" rel='stylesheet' type='text/css'/>
<link href="/Content/update.css" rel='stylesheet' type='text/css'/>
<link href="/Content/overrides.css" rel='stylesheet' type='text/css'/>
<link href="/Content/info.css" rel='stylesheet' type='text/css'/>
<link rel="apple-touch-icon" href="/Content/Images/touch/57.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="/Content/Images/touch/72.png"/>

Loading…
Cancel
Save