Add toggleable source
This commit is contained in:
		@@ -14,11 +14,13 @@
 | 
			
		||||
                <div class="container">
 | 
			
		||||
                    <div class="d-flex">
 | 
			
		||||
                        <a class="header-brand" href="/">#(config.title)</a>
 | 
			
		||||
                        <div class="d-flex order-lg-2 ml-auto">
 | 
			
		||||
                            <div class="nav-item d-none d-md-flex">
 | 
			
		||||
                                <a href="https://github.com/tabler/tabler" class="btn btn-sm btn-outline-primary" target="_blank">Source code</a>
 | 
			
		||||
                        #if(config.showSourceBtn):
 | 
			
		||||
                            <div class="d-flex order-lg-2 ml-auto">
 | 
			
		||||
                                <div class="nav-item d-none d-md-flex">
 | 
			
		||||
                                    <a href="https://github.com/tabler/tabler" class="btn btn-sm btn-outline-primary" target="_blank">Source code</a>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        #endif
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "title": "Statusboard",
 | 
			
		||||
  "showSourceBtn": true,
 | 
			
		||||
  "services": {
 | 
			
		||||
    "Node 1": [
 | 
			
		||||
      {
 | 
			
		||||
 
 | 
			
		||||
@@ -3,5 +3,6 @@ import Vapor
 | 
			
		||||
 | 
			
		||||
struct Config: Codable {
 | 
			
		||||
    let title: String
 | 
			
		||||
    let showSourceBtn: Bool
 | 
			
		||||
    let services: [String:[[String:String]]]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user