From 659f52982341ba6d0c8bafb545df78ee0dffc205 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 31 Jan 2017 22:14:12 +0100
Subject: [PATCH] Update thesis templates to improve looks

Improve the templates using template tags.
 Further, wrapping the `content` block in the
 `container` div element.
---
 scipost/templates/scipost/base.html           |  5 +--
 .../theses/unvetted_thesislinks.html          | 36 ++++++++++---------
 theses/templates/theses/vet_thesislink.html   | 18 ++++++----
 3 files changed, 34 insertions(+), 25 deletions(-)

diff --git a/scipost/templates/scipost/base.html b/scipost/templates/scipost/base.html
index 2bedef9de..a4a02ad1a 100644
--- a/scipost/templates/scipost/base.html
+++ b/scipost/templates/scipost/base.html
@@ -31,8 +31,9 @@
     {% block bodysup %}
     {% endblock bodysup %}
 
-    {% block content %}
-    {% endblock content %}
+    <div class="container">
+        {% block content %}{% endblock content %}
+    </div>
 
     {% include 'scipost/footer.html' %}
 
diff --git a/theses/templates/theses/unvetted_thesislinks.html b/theses/templates/theses/unvetted_thesislinks.html
index f2245e0a6..6846720a4 100644
--- a/theses/templates/theses/unvetted_thesislinks.html
+++ b/theses/templates/theses/unvetted_thesislinks.html
@@ -6,21 +6,23 @@
 
 {% endblock headsup %}
 
-{% block bodysup %}
+{% block content %}
 
-
-<h1>Unvetted Thesis Links</h1>
-<ul>
-    {% for thesislink in thesislinks %}
-        <li>
-        {{ thesislink.author }} - {{ thesislink.title }} -
-        <a href = "{% url 'theses:vet_thesislink' pk=thesislink.id %}">vet</a>
-        </li>
-    {% empty %}
-        <li>
-            No unvetted thesis links.
-        </li>
-    {% endfor %}
-</ul>
-
-{% endblock bodysup %}
+<div class="row">
+    <div class="col-12">
+        <h1>Unvetted Thesis Links</h1>
+        <ul>
+            {% for thesislink in thesislinks %}
+                <li>
+                {{ thesislink.author }} - {{ thesislink.title }} -
+                <a href = "{% url 'theses:vet_thesislink' pk=thesislink.id %}">vet</a>
+                </li>
+            {% empty %}
+                <li>
+                    No unvetted thesis links.
+                </li>
+            {% endfor %}
+        </ul>
+    </div>
+</div>
+{% endblock content %}
diff --git a/theses/templates/theses/vet_thesislink.html b/theses/templates/theses/vet_thesislink.html
index 3694c92f0..8822dfff1 100644
--- a/theses/templates/theses/vet_thesislink.html
+++ b/theses/templates/theses/vet_thesislink.html
@@ -1,16 +1,22 @@
 {% extends 'scipost/base.html' %}
 
+{% load bootstrap %}
+
 {% block pagetitle %}: Unvetted Thesis Links{% endblock pagetitle %}
 
 {% block headsup %}
 
 {% endblock headsup %}
 
-{% block bodysup %}
+{% block content %}
 
-<form action="" method="post">{% csrf_token %}
-    {{ form.as_p }}
-    <input type="submit" value="Update" />
-</form>
+<div class="row">
+    <div class="col-12">
+        <form action="" method="post">{% csrf_token %}
+            {{ form|bootstrap }}
+            <input class="btn btn-primary" type="submit" value="Update" />
+        </form>
+    </div>
+</div>
 
-{% endblock bodysup %}
+{% endblock content %}
-- 
GitLab