Remove 'version' entry in tools list, as 'Diagnosis' already contains it

This commit is contained in:
Alexandre Aubin 2019-05-30 17:10:10 +02:00
parent c6c226aa24
commit c8ead748ee
3 changed files with 0 additions and 33 deletions

View file

@ -208,13 +208,6 @@
});
// Packages version
app.get('#/tools/versions', function (c) {
c.api('/diagnosis', function(diagnosis) {
c.view('tools/tools_versions', {'versions' : diagnosis.packages });
});
});
// Reboot or shutdown button
app.get('#/tools/reboot', function (c) {
c.view('tools/tools_reboot');

View file

@ -43,8 +43,4 @@
<span class="pull-right fa-chevron-right"></span>
<h2 class="list-group-item-heading">{{t 'tools_shutdown_reboot'}}</h2>
</a>
<a href="#/tools/versions" class="list-group-item slide clearfix">
<span class="pull-right fa-chevron-right"></span>
<h2 class="list-group-item-heading">{{t 'versions'}}</h2>
</a>
</div>

View file

@ -1,22 +0,0 @@
<div class="btn-breadcrumb">
<a href="#/" ><i class="fa-home"></i><span class="sr-only">{{t 'home'}}</span></a>
<a href="#/tools">{{t 'tools'}}</a>
<a href="#/tools/versions">{{t 'versions'}}</a>
</div>
<div class="separator"></div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title"><span class="fa-fw fa-cogs"></span> {{t 'versions'}}</h2>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
{{#each versions}}
<dt>{{@key}}</dt>
<dd>{{version}} ({{repo}})</dd>
{{/each}}
</dl>
<a role="button" href="#/update" class="btn btn-success pull-right">{{t 'system_update'}}</a>
</div>
</div>