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

Unified Diff: appengine/components/components/auth/ui/templates/admin/base.html

Issue 2838793002: auth: Split UI pages into admin and non-admin ones. (Closed)
Patch Set: comments 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
Index: appengine/components/components/auth/ui/templates/admin/base.html
diff --git a/appengine/components/components/auth/ui/templates/base_minimal.html b/appengine/components/components/auth/ui/templates/admin/base.html
similarity index 80%
rename from appengine/components/components/auth/ui/templates/base_minimal.html
rename to appengine/components/components/auth/ui/templates/admin/base.html
index 6d3a04b42e9fe6c461f50336759f2153356a6448..3bbb26ce9544f5ae4441b5aee6af43a6b80a956e 100644
--- a/appengine/components/components/auth/ui/templates/base_minimal.html
+++ b/appengine/components/components/auth/ui/templates/admin/base.html
@@ -9,7 +9,6 @@ that can be found in the LICENSE file. -->
<link href="/third_party/bootstrap/css/bootstrap-3.1.0.min.css" rel="stylesheet">
<link href="/auth/static/css/common.css" rel="stylesheet">
<script src="/third_party/jquery/jquery-1.11.0.min.js"></script>
- <script src="/auth/static/js/common.js"></script>
</head>
<body>
@@ -18,8 +17,11 @@ that can be found in the LICENSE file. -->
{% endblock %}
</div>
<script type="text/javascript" nonce="{{csp_nonce}}">
- // Expose 'config' as global js variable.
- var config = {{config|safe}};
+ function redirectToLogout() {
+ if (confirm('You\'ll be signed out from ALL your google accounts!')) {
+ window.location = {{logout_url|safe}};
+ }
+ };
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698