1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 07:22:35 +01:00

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

This commit is contained in:
Mark McDowall 2014-11-20 21:43:04 -08:00
parent 71e83ba8a8
commit 365898df45
9 changed files with 64 additions and 12 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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>

View File

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

View File

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

View File

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

View File

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