1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04: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

@@ -1,7 +1,7 @@
<fieldset>
<legend>About</legend>
<dl class="dl-horizontal">
<dl class="dl-horizontal info">
<dt>Version</dt>
<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',
'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());
}
});
});

View File

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

View File

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