| OLD | NEW |
| (Empty) |
| 1 {{define "title"}}Configs{{end}} | |
| 2 | |
| 3 {{ define "head" }}{{ end }} | |
| 4 | |
| 5 {{define "body"}} | |
| 6 <div class="header"> | |
| 7 <a href="{{ .Navi.SiteTitle.URL }}">{{ .Navi.SiteTitle.Label }}</a> | |
| 8 </div> | |
| 9 <div class="content"> | |
| 10 <h1>All Projects</h1> | |
| 11 <h2>These are all of the projects and their settings as defined by luci config
</h2> | |
| 12 {{ range .Projects }} | |
| 13 <h3> {{ .ID }} </h3> | |
| 14 <h4> Readers </h4> | |
| 15 <ul> | |
| 16 {{ range .Readers }} | |
| 17 <li> {{ . }} </li> | |
| 18 {{ end }} | |
| 19 </ul> | |
| 20 {{ range .Consoles }} | |
| 21 <h4> Console: {{ .Name }} </h4> | |
| 22 <p> <b>ID</b>: {{ .ID }} </p> | |
| 23 <p> <b>Repo</b>: {{ .RepoURL }} </p> | |
| 24 <p> <b>Branch</b>: {{ .Branch}} </p> | |
| 25 <ul> | |
| 26 {{ range .Builders }} | |
| 27 <li> <b>{{ .Module }}/{{ .Name }}</b>: {{ .Category }} - {{ .ShortName }
} </li> | |
| 28 {{ end }} | |
| 29 </ul> | |
| 30 {{ else }} | |
| 31 <h4> No consoles defined </h4> | |
| 32 {{ end }} | |
| 33 {{ else }} | |
| 34 <h3> No projects defined </h3> | |
| 35 {{ end }} | |
| 36 | |
| 37 <h1>Service Configs</h1> | |
| 38 <h2>These are settings tied to this instance of Milo</h2> | |
| 39 {{ if not .ServiceConfig }} | |
| 40 <h3>No Settings found...</h3> | |
| 41 {{ else }} | |
| 42 <ul> | |
| 43 <li> Revision: {{ .ServiceConfig.Revision }} </li> | |
| 44 <li> Last Updated: {{ .ServiceConfig.LastUpdated | localTime "N/A" }} </li
> | |
| 45 </ul> | |
| 46 Content: | |
| 47 <pre>{{ .ServiceConfig.Text }}</pre> | |
| 48 {{ end }} | |
| 49 </div> | |
| 50 {{end}} | |
| OLD | NEW |