Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: milo/frontend/appengine/templates/pages/configs.html

Issue 2982183002: Milo: Store console defs as their own entities (Closed)
Patch Set: Rebase fixes and Working Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « milo/common/config_test.go ('k') | milo/frontend/view_config.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{define "title"}}Configs{{end}} 1 {{define "title"}}Configs{{end}}
2 2
3 {{ define "head" }}{{ end }} 3 {{ define "head" }}{{ end }}
4 4
5 {{define "body"}} 5 {{define "body"}}
6 <div class="header"> 6 <div class="header">
7 <a href="{{ .Navi.SiteTitle.URL }}">{{ .Navi.SiteTitle.Label }}</a> 7 <a href="{{ .Navi.SiteTitle.URL }}">{{ .Navi.SiteTitle.Label }}</a>
8 </div> 8 </div>
9 <div class="content"> 9 <div class="content">
10 <h1>All Projects</h1> 10 <h1>All Consoles</h1>
11 <h2>These are all of the projects and their settings as defined by luci config </h2> 11 {{ range .Consoles }}
12 {{ range .Projects }} 12 <h4> {{ .GetProjectName }} / {{ .ID }} </h4>
13 <h3> {{ .ID }} </h3> 13 <p> <b>Repo</b>: {{ .RepoURL }} </p>
14 <h4> Readers </h4> 14 <p> <b>Ref</b>: {{ .Ref }} </p>
15 <ul> 15 <p> <b>Manifest Name</b>: {{ .ManifestName }} </p>
16 {{ range .Readers }} 16 <p> <b>URL</b>: {{ .URL }} </p>
17 <li> {{ . }} </li> 17 <p> <b>Revision</b>: {{ .Revision }} </p>
18 {{ end }} 18 <ul>{{ range .Builders }}<li>{{ . }}</li>{{ end }}</ul>
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 }} 19 {{ else }}
34 <h3> No projects defined </h3> 20 <h4> No consoles defined </h4>
35 {{ end }} 21 {{ end }}
36 22
37 <h1>Service Configs</h1> 23 <h1>Service Configs</h1>
38 <h2>These are settings tied to this instance of Milo</h2> 24 <h2>These are settings tied to this instance of Milo</h2>
39 {{ if not .ServiceConfig }} 25 {{ if not .ServiceConfig }}
40 <h3>No Settings found...</h3> 26 <h3>No Settings found...</h3>
41 {{ else }} 27 {{ else }}
42 <ul> 28 <ul>
43 <li> Revision: {{ .ServiceConfig.Revision }} </li> 29 <li> Revision: {{ .ServiceConfig.Revision }} </li>
44 <li> Last Updated: {{ .ServiceConfig.LastUpdated | localTime "N/A" }} </li > 30 <li> Last Updated: {{ .ServiceConfig.LastUpdated | localTime "N/A" }} </li >
45 </ul> 31 </ul>
46 Content: 32 Content:
47 <pre>{{ .ServiceConfig.Text }}</pre> 33 <pre>{{ .ServiceConfig.Text }}</pre>
48 {{ end }} 34 {{ end }}
49 </div> 35 </div>
50 {{end}} 36 {{end}}
OLDNEW
« no previous file with comments | « milo/common/config_test.go ('k') | milo/frontend/view_config.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698