Compare commits

..

2 Commits

Author SHA1 Message Date
249f949967 Change href on source button 2020-11-11 16:11:19 -08:00
acc391e8e6 Add toggleable source 2020-11-11 16:10:33 -08:00
3 changed files with 8 additions and 4 deletions

View File

@ -14,11 +14,13 @@
<div class="container"> <div class="container">
<div class="d-flex"> <div class="d-flex">
<a class="header-brand" href="/">#(config.title)</a> <a class="header-brand" href="/">#(config.title)</a>
<div class="d-flex order-lg-2 ml-auto"> #if(config.showSourceBtn):
<div class="nav-item d-none d-md-flex"> <div class="d-flex order-lg-2 ml-auto">
<a href="https://github.com/tabler/tabler" class="btn btn-sm btn-outline-primary" target="_blank">Source code</a> <div class="nav-item d-none d-md-flex">
<a href="https://gitea.arsenm.dev/Arsen6331/statusboard" class="btn btn-sm btn-outline-primary" target="_blank">Source code</a>
</div>
</div> </div>
</div> #endif
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,5 +1,6 @@
{ {
"title": "Statusboard", "title": "Statusboard",
"showSourceBtn": true,
"services": { "services": {
"Node 1": [ "Node 1": [
{ {

View File

@ -3,5 +3,6 @@ import Vapor
struct Config: Codable { struct Config: Codable {
let title: String let title: String
let showSourceBtn: Bool
let services: [String:[[String:String]]] let services: [String:[[String:String]]]
} }