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

Unified Diff: milo/appengine/frontend/templates/pages/builder.html

Issue 2810113002: Milo buildbot builder page: Add pagnation with cursors. (Closed)
Patch Set: train Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « milo/appengine/frontend/expectations/buildbot.builder-Basic_Test_with_builds.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/frontend/templates/pages/builder.html
diff --git a/milo/appengine/frontend/templates/pages/builder.html b/milo/appengine/frontend/templates/pages/builder.html
index 1e53a952a84fd5426e4615b1aff1abfe1b698512..7a75f1fb80c74004a5b602a31658506e0684f793 100644
--- a/milo/appengine/frontend/templates/pages/builder.html
+++ b/milo/appengine/frontend/templates/pages/builder.html
@@ -6,7 +6,7 @@
{{end}}
{{define "body"}}
-<h1>Builder {{.Builder.Name}}</h1>
+<h1>Builder <a href="{{ pagedURL .Request -1 "EMPTY" }}">{{.Builder.Name}}</a></h1>
{{ if .Builder.CurrentBuilds }}
<h2>Current Builds ({{len .Builder.CurrentBuilds}}):</h2>
@@ -119,12 +119,14 @@
<h2>No Recent Builds</h2>
{{ end }}
+{{ if .Builder.PrevCursor }}<a href="{{ pagedURL .Request 0 .Builder.PrevCursor }}">Prev</a>{{ end }}
(Show:
-<a href=".">default</a>
-<a href="?limit=25">25</a>
-<a href="?limit=50">50</a>
-<a href="?limit=100">100</a>
-<a href="?limit=200">200</a>
+<a href="{{ pagedURL .Request -1 "" }}">default</a>
+<a href="{{ pagedURL .Request 25 "" }}">25</a>
+<a href="{{ pagedURL .Request 50 "" }}">50</a>
+<a href="{{ pagedURL .Request 100 "" }}">100</a>
+<a href="{{ pagedURL .Request 200 "" }}">200</a>
)
+{{ if .Builder.NextCursor }}<a href="{{ pagedURL .Request 0 .Builder.NextCursor}}">Next</a>{{ end }}
{{end}}
« no previous file with comments | « milo/appengine/frontend/expectations/buildbot.builder-Basic_Test_with_builds.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698