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

Unified Diff: chrome/common/extensions/docs/examples/apps/hello-python/templates/index.html

Issue 3161030: Adding a sample CWS license server client written for Python App Engine. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: More sensible fallback for dev environment. Created 10 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 | « chrome/common/extensions/docs/examples/apps/hello-python/oauth2/clients/smtp.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/examples/apps/hello-python/templates/index.html
diff --git a/chrome/common/extensions/docs/examples/apps/hello-python/templates/index.html b/chrome/common/extensions/docs/examples/apps/hello-python/templates/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..0602513252a582ba1cda86236c7e11e3111c3ead
--- /dev/null
+++ b/chrome/common/extensions/docs/examples/apps/hello-python/templates/index.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+ * Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+ * source code is governed by a BSD-style license that can be found in the
+ * LICENSE file.
+-->
+<html>
+ <head>
+ <style>
+ body { font: 14px Arial; }
+ .credentials { text-align: right; }
+ p { padding: 100px 0; text-align: center; font-size: 24px; }
+ p strong {
+ display: inline-block; padding: 4px; border: 2px dotted #999;
+ border-radius: 10px; margin: 0 5px;
+ }
+ .noaccess strong { color: #900; border-color: #900; }
+ .fullaccess strong { color: #090; border-color: #090; }
+ .trialaccess strong { color: #009; border-color: #009; }
+ </style>
+ </head>
+ <body>
+ <div class="credentials">
+ {% if user_login %}
+ <a href="{{user_login}}">Sign in</a>
+ {% else %}
+ <strong>{{user_id}}</strong> | <a href="{{user_logout}}">Sign out</a>
+ {% endif %}
+ </div>
+ {% if not license %}
+ <p class="notsignedin">
+ You are <strong>not signed in</strong> to this app.
+ </p>
+ {% else %}
+ {% if license.error %}
+ <p><strong>There was an error loading the response:</strong>{{license.message}}</p>
+ {% else %}
+ {% ifequal license.access "NO" %}
+ <p class="noaccess">
+ You have <strong>no access</strong> to extra features in this app.
+ </p>
+ {% endifequal %}
+ {% ifequal license.access "FREE_TRIAL" %}
+ <p class="trialaccess">
+ You are currently enrolled in a <strong>free trial</strong> of this app.
+ </p>
+ {% endifequal %}
+ {% ifequal license.access "FULL" %}
+ <p class="fullaccess">
+ You have <strong>full access</strong> to the features of this app.
+ </p>
+ {% endifequal %}
+ {% endif %}
+ {% endif %}
+
+ </body>
+</html>
« no previous file with comments | « chrome/common/extensions/docs/examples/apps/hello-python/oauth2/clients/smtp.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698