From 7a0cdd41297431fcb515efea98c6ba2bc9a993c8 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 15 Mar 2019 23:32:06 +0100 Subject: Redesign everything with bootstrap 4 and bootswatch themes --- pastepy/templates/base.html | 42 ++++++++++++++--------- pastepy/templates/full.html | 13 ++++--- pastepy/templates/paste.html | 82 ++++++++++++++++++++++++++++---------------- pastepy/templates/view.html | 53 +++++++++++++++------------- 4 files changed, 117 insertions(+), 73 deletions(-) (limited to 'pastepy/templates') diff --git a/pastepy/templates/base.html b/pastepy/templates/base.html index e208b6b..bd74a91 100644 --- a/pastepy/templates/base.html +++ b/pastepy/templates/base.html @@ -1,20 +1,30 @@ - - {{ config.PASTEBIN_NAME }}{% if title %} – {{ title }}{% endif %} - -{% block head %} -{% endblock %} - - -
- -
-{% block content %} -{% endblock %} -
+ + + + {{ 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 index c60126e..743bed9 100644 --- a/pastepy/templates/full.html +++ b/pastepy/templates/full.html @@ -1,14 +1,17 @@ - {{ title }} - - - + + + {{ config.PASTEBIN_NAME }}{% if title %} – {{ title }}{% endif %} + + + + {% if rendered %} -
+
{% endif %} {{ text|safe }} {% if rendered %} diff --git a/pastepy/templates/paste.html b/pastepy/templates/paste.html index ddb321e..6504e9e 100644 --- a/pastepy/templates/paste.html +++ b/pastepy/templates/paste.html @@ -1,34 +1,58 @@ {% extends "base.html" %} {% block head %} - + +{% endblock %} +{% block nav %} + {% endblock %} {% block content %} -
-
    -
  • - - - -
  • -
  • - - - -
  • -
  • -
  • -
  • - - -
  • -
-
+

New paste

+
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
+
{% endblock %} diff --git a/pastepy/templates/view.html b/pastepy/templates/view.html index b0b114c..8cf60cd 100644 --- a/pastepy/templates/view.html +++ b/pastepy/templates/view.html @@ -1,28 +1,35 @@ {% extends "base.html" %} {% block head %} - - + + +{% endblock %} +{% block nav %} + {% endblock %} {% block content %} -

New paste

-
-

{{ pastetitle }}

-
Pasted by {{ nick }} on {{date }} - {% if syntax %} as {{ syntax }}{% endif %} -
- - {% if rendered %} -
- {% endif %} - {{ text|safe }} - {% if rendered %} -
- {% endif %} -
+

{{ pastetitle }}

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