Add Status Report to Info page
This commit is contained in:
parent
cda68d3454
commit
f5c5999f44
11 changed files with 361 additions and 20 deletions
|
|
@ -1,3 +1,20 @@
|
|||
<div class="pure-u-1-1">
|
||||
<p>
|
||||
Sections
|
||||
</p>
|
||||
|
||||
<div class="pure-button-group" role="group" aria-label="Table Of Contents">
|
||||
<a class="pure-button pure-button-small" href="#overview">Info & Status</a>
|
||||
<a class="pure-button pure-button-small" href="#requirements">Drupal Status Report</a>
|
||||
<a class="pure-button pure-button-small" href="#users">Users (Drupal)</a>
|
||||
<a class="pure-button pure-button-small" href="#wisski">WissKI Data</a>
|
||||
<a class="pure-button pure-button-small" href="#stats">Statistics</a>
|
||||
<a class="pure-button pure-button-small" href="#ssh">SSH Keys</a>
|
||||
<a class="pure-button pure-button-small" href="#snapshots">Snapshots</a>
|
||||
<a class="pure-button pure-button-small" href="#danger">Dangerous Actions</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1-1">
|
||||
<h2 id="overview">Info & Status</h2>
|
||||
</div>
|
||||
|
|
@ -196,9 +213,62 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1-1">
|
||||
<h2 id="requirements">Drupal Status Report</h2>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1">
|
||||
<div class="padding">
|
||||
<div class="overflow">
|
||||
<table class="pure-table pure-table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
ID
|
||||
</th>
|
||||
<th>
|
||||
Severity
|
||||
</th>
|
||||
<th>
|
||||
Title
|
||||
</th>
|
||||
<th>
|
||||
Value
|
||||
</th>
|
||||
<th>
|
||||
Description
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{{ range $name, $req := .Info.Requirements }}
|
||||
<tr>
|
||||
<td>
|
||||
<code>{{ $req.ID }}</code>
|
||||
</td>
|
||||
<td>
|
||||
{{ $req.Level }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $req.Title }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $req.Value }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $req.Description }}
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1-1">
|
||||
<h2 id="wisski">Users (Drupal)</h2>
|
||||
<h2 id="users">Users (Drupal)</h2>
|
||||
<a class="pure-button" href="/admin/grants/{{ .Info.Slug }}">Manage Grants</a>
|
||||
</div>
|
||||
|
||||
|
|
@ -239,7 +309,7 @@
|
|||
{{ $slug := .Instance.Slug }}
|
||||
{{ $csrf := .CSRF }}
|
||||
{{ range $index, $user := .Info.Users }}
|
||||
<tr {{ if not $user.Status }}style="color:gray"{{ end }}>
|
||||
<tr {{ if not $user.Status }}style="color:gray" aria-disabled="true"{{ end }}>
|
||||
<td>
|
||||
<code>{{ $user.UID }}</code>
|
||||
</td>
|
||||
|
|
@ -490,7 +560,7 @@
|
|||
</div>
|
||||
|
||||
<div class="pure-u-1-1">
|
||||
<h2 id="overview">Dangerous Actions</h2>
|
||||
<h2 id="danger">Dangerous Actions</h2>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-xl-2-5">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue