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

Unified Diff: appengine/components/components/auth/ui/templates/access_denied.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
« no previous file with comments | « no previous file | appengine/components/components/auth/ui/templates/admin/access_denied.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/components/components/auth/ui/templates/access_denied.html
diff --git a/appengine/components/components/auth/ui/templates/access_denied.html b/appengine/components/components/auth/ui/templates/access_denied.html
index 27a4a290a54be76a62bc237feddf35b57320734e..e40f9e31e15624043fbec43f1ae89bafcd12d4cf 100644
--- a/appengine/components/components/auth/ui/templates/access_denied.html
+++ b/appengine/components/components/auth/ui/templates/access_denied.html
@@ -1,23 +1,40 @@
-{% extends 'auth/base_minimal.html' %}
-{% block content %}
+<!DOCTYPE html>
+<html>
+<!-- Copyright 2014 The LUCI Authors. All rights reserved.
+Use of this source code is governed under the Apache License, Version 2.0
+that can be found in the LICENSE file. -->
+<head>
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
+ <title>{{app_name}} - {{page_title}}</title>
+ <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>
-<h2>Access denied</h2>
-<p>Looks like you do not have access to this page. You are logged in as
-<b>{{identity.name}}</b>.
-<p>Login under a different account.</p>
-<hr>
-<p>Error details:</p>
-<pre>{{error}}</pre>
-<hr>
-<p>
- <a id="logout-btn" class="btn btn-primary" href="#">Logout</a>
-</p>
+<body>
+ <div class="container">
+ <h2>Access denied</h2>
+ <p>Looks like you do not have access to this page. You are logged in as
+ <b>{{identity.name}}</b>.
+ <p>Login under a different account.</p>
+ <hr>
+ <p>Error details:</p>
+ <pre>{{error}}</pre>
+ <hr>
+ <p>
+ <a id="logout-btn" class="btn btn-primary" href="#">Logout</a>
+ </p>
+ </div>
+ <script type="text/javascript" nonce="{{csp_nonce}}">
+ // Expose 'config' as global js variable.
+ var config = {{config|safe}};
-<script type="text/javascript" nonce="{{csp_nonce}}">
- $('#logout-btn').click(function(e) {
- common.logout();
- e.preventDefault();
- });
-</script>
+ $('#logout-btn').click(function(e) {
+ common.logout();
+ e.preventDefault();
+ });
+ </script>
+</body>
-{% endblock %}
+</html>
« no previous file with comments | « no previous file | appengine/components/components/auth/ui/templates/admin/access_denied.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698