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

Unified Diff: milo/appengine/frontend/templates/buildbot/includes/buildbot.html

Issue 2271483002: Milo: Add a login url (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Retrain Created 4 years, 4 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/static/buildbot/css/default.css ('k') | milo/appengine/settings/themes.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/frontend/templates/buildbot/includes/buildbot.html
diff --git a/milo/appengine/frontend/templates/buildbot/includes/buildbot.html b/milo/appengine/frontend/templates/buildbot/includes/buildbot.html
index d9049475971bb58994d1a9253d2ccd3026f4a5fa..545fa1fa07b7164b90f10e10ffaf98b04c4162c3 100644
--- a/milo/appengine/frontend/templates/buildbot/includes/buildbot.html
+++ b/milo/appengine/frontend/templates/buildbot/includes/buildbot.html
@@ -13,6 +13,17 @@ that can be found in the LICENSE file. -->
<body class="interface">
<header>
Luci
+ <div>
+ {{ if .IsAnonymous }}
+ <a href="{{.LoginURL}}">login</a>
+ {{ else }}
+ {{ if .User.Picture }}
+ <img class="account-picture" src="{{.User.Picture}}">
+ {{ end }}
+ {{ .User.Email }} |
+ <a href="{{.LogoutURL}}">logout</a>
+ {{ end }}
+ </div>
</header>
<hr>
{{template "body" .}}
« no previous file with comments | « milo/appengine/frontend/static/buildbot/css/default.css ('k') | milo/appengine/settings/themes.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698