summaryrefslogtreecommitdiff
path: root/templates/view.html
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-03-24 21:53:13 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2017-03-24 21:54:01 +0100
commit46832b96a5ed60a1299f4450a01688d74e56d17e (patch)
tree25853b68bf98343e0fafdfe6df2de8a2a43f65aa /templates/view.html
parentc834b5b515f3abbd417c2d6beb39329b786a67ff (diff)
Replaced cheetah templates with jinja2 templates.
Diffstat (limited to 'templates/view.html')
-rw-r--r--templates/view.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/view.html b/templates/view.html
new file mode 100644
index 0000000..0a20a62
--- /dev/null
+++ b/templates/view.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+{% block head %}
+ <link rel="StyleSheet" href="/highlight_stylesheet" type="text/css">
+ <script type="text/javascript" src="/static/view.js"></script>
+{% endblock %}
+{% block content %}
+ <p><a href="/">New paste</a></p>
+ <div id="paste">
+ <h3>{{ pastetitle }}</h3>
+ <div id="info">Pasted by <span id="nick">{{ nick }}</span> on <span id="date">{{date }}</span>
+ {% if syntax %} as <span id="syntax-type">{{ syntax }}</span>{% endif %}
+ </div>
+ <div id="alt-links">
+ {% if hash %}
+ <a href="/raw/{{ hash }}">Download as plain text</a>
+ {% endif %}
+ </div>
+ {% if rendered %}
+ <div class="paste-rendered">
+ {% endif %}
+ {{ text }}
+ {% if rendered %}
+ </div>
+ {% endif %}
+ </div>
+{% endblock %}