summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-05-12 19:10:08 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2017-05-12 19:10:08 +0200
commit1473de0aaa1e066bce853fc78a2ba6473a0c176e (patch)
tree1d6dc1d1dbe7ceaee9fa1637ed41dffea727ca7b /templates
parent5123d1a3b48920db78e5ec638d0b1c6a1d513380 (diff)
Added fullscreen mode.
Diffstat (limited to 'templates')
-rw-r--r--templates/full.html18
-rw-r--r--templates/view.html2
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/full.html b/templates/full.html
new file mode 100644
index 0000000..dfa0606
--- /dev/null
+++ b/templates/full.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>{{ title }}</title>
+ <link rel="StyleSheet" href="/highlight_stylesheet" type="text/css">
+ <link rel="StyleSheet" href="/static/paste.css" type="text/css">
+ <script type="text/javascript" src="/static/view.js"></script>
+</head>
+<body>
+{% if rendered %}
+<div class="paste-rendered">
+{% endif %}
+{{ text }}
+{% if rendered %}
+</div>
+{% endif %}
+</body>
+</html>
diff --git a/templates/view.html b/templates/view.html
index 0a20a62..a1d00a7 100644
--- a/templates/view.html
+++ b/templates/view.html
@@ -13,6 +13,8 @@
<div id="alt-links">
{% if hash %}
<a href="/raw/{{ hash }}">Download as plain text</a>
+ &mdash;
+ <a href="/full/{{ hash }}">View in fullscreen</a>
{% endif %}
</div>
{% if rendered %}