aboutsummaryrefslogtreecommitdiff
path: root/templates/token.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-05-28 23:28:32 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-05-28 23:28:32 +0100
commit69973a0c0cea573d444d46b5ae69bebc1567a9b8 (patch)
tree61fb2ac88ca974f0f9e7ea5e03dff251c5936872 /templates/token.go
parentf1a898a1adb2d3a0facfece2729bd0c527781bdc (diff)
Define the token tmpl as a string
Diffstat (limited to 'templates/token.go')
-rw-r--r--templates/token.go48
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/token.go b/templates/token.go
new file mode 100644
index 0000000..dbad371
--- /dev/null
+++ b/templates/token.go
@@ -0,0 +1,48 @@
+package templates
+
+const Token = `<html>
+ <head>
+ <title>YOUR TOKEN!</title>
+ <style>
+ <!--
+ body {
+ text-align: center;
+ font-family: sans-serif;
+ background-color: #edece4;
+ margin-top: 120px;
+ }
+ .code {
+ background-color: #26292B;
+ border: none;
+ color: #fff;
+ font-family: monospace;
+ font-size: 13;
+ font-weight: bold;
+ height: auto;
+ margin: 12px 12px 12px 12px;
+ padding: 24px 12px 12px 12px;
+ resize: none;
+ text-align: center;
+ width: 960px;
+ }
+ ::selection {
+ background: #32d0ff;
+ color: #000;
+ }
+ ::-moz-selection {
+ background: #32d0ff;
+ color: #000;
+ }
+ -->
+ </style>
+ </head>
+ <body>
+ <h2>
+ This is your token. There are many like it but this one is yours.
+ </h2>
+ <textarea class="code" readonly spellcheck="false" onclick="this.focus();this.select();">{{.Token}}</textarea>
+ <h2>
+ The token will expire in &lt; 1 hour.
+ </h2>
+ </body>
+</html>`