From c57494ae405ffbdd8ec45f74ef04ea85895f1bf7 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 15 Mar 2019 18:45:47 +0100 Subject: Port application to flask --- pastepy/templates/base.html | 20 ++++++++++++++++++++ pastepy/templates/full.html | 18 ++++++++++++++++++ pastepy/templates/paste.html | 34 ++++++++++++++++++++++++++++++++++ pastepy/templates/view.html | 28 ++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 pastepy/templates/base.html create mode 100644 pastepy/templates/full.html create mode 100644 pastepy/templates/paste.html create mode 100644 pastepy/templates/view.html (limited to 'pastepy/templates') diff --git a/pastepy/templates/base.html b/pastepy/templates/base.html new file mode 100644 index 0000000..e208b6b --- /dev/null +++ b/pastepy/templates/base.html @@ -0,0 +1,20 @@ + + + + {{ config.PASTEBIN_NAME }}{% if title %} – {{ title }}{% endif %} + +{% block head %} +{% endblock %} + + +
+ +
+{% block content %} +{% endblock %} +
+
+ + diff --git a/pastepy/templates/full.html b/pastepy/templates/full.html new file mode 100644 index 0000000..c60126e --- /dev/null +++ b/pastepy/templates/full.html @@ -0,0 +1,18 @@ + + + + {{ title }} + + + + + +{% if rendered %} +
+{% endif %} +{{ text|safe }} +{% if rendered %} +
+{% endif %} + + diff --git a/pastepy/templates/paste.html b/pastepy/templates/paste.html new file mode 100644 index 0000000..9a22e76 --- /dev/null +++ b/pastepy/templates/paste.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block head %} + +{% endblock %} +{% block content %} +
+ +
+{% endblock %} diff --git a/pastepy/templates/view.html b/pastepy/templates/view.html new file mode 100644 index 0000000..b0b114c --- /dev/null +++ b/pastepy/templates/view.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block head %} + + +{% endblock %} +{% block content %} +

New paste

+
+

{{ pastetitle }}

+
Pasted by {{ nick }} on {{date }} + {% if syntax %} as {{ syntax }}{% endif %} +
+ + {% if rendered %} +
+ {% endif %} + {{ text|safe }} + {% if rendered %} +
+ {% endif %} +
+{% endblock %} -- cgit v1.2.3