From 3fb32b6d886346295bdcdf6b2fb3172d462b6df4 Mon Sep 17 00:00:00 2001
From: Geert Kapteijns <ghkapteijns@gmail.com>
Date: Sun, 15 Jan 2017 16:44:05 +0100
Subject: [PATCH] Change references to new _header_as_table method

---
 comments/templates/comments/reply_to_comment.html    | 8 ++++----
 theses/templates/theses/_header_as_table.html        | 4 ++--
 theses/templates/theses/vet_thesislink_requests.html | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/comments/templates/comments/reply_to_comment.html b/comments/templates/comments/reply_to_comment.html
index 19cdddfbe..89f725b9a 100644
--- a/comments/templates/comments/reply_to_comment.html
+++ b/comments/templates/comments/reply_to_comment.html
@@ -32,21 +32,21 @@
   {% if comment.commentary %}
     <h1>The Commentary concerned:</h1>
     {{ commentary.header_as_table }}
-    
+
     <h3>Abstract:</h3>
     <p>{{ commentary.pub_abstract }}</p>
   {% endif %}
   {% if comment.submission %}
     <h1>The Submission concerned:</h1>
     {{ submission.header_as_table }}
-    
+
     <h3>Abstract:</h3>
     <p>{{ submission.abstract }}</p>
   {% endif %}
   {% if comment.thesislink %}
     <h1>The Thesis concerned:</h1>
-    {{ thesislink.header_as_table }}
-    
+    {% include "theses/_header_as_table.html" with thesislink=thesislink %}
+
     <h3>Abstract:</h3>
     <p>{{ thesislink.abstract }}</p>
   {% endif %}
diff --git a/theses/templates/theses/_header_as_table.html b/theses/templates/theses/_header_as_table.html
index c6f6fb9ba..2a2341464 100644
--- a/theses/templates/theses/_header_as_table.html
+++ b/theses/templates/theses/_header_as_table.html
@@ -2,10 +2,10 @@
 
 <table>
     <tr>
-        <td>Title: </td><td>&nbsp;</td><td>{{ title }}</td>
+        <td>Title: </td><td>&nbsp;</td><td>{{ thesislink.title }}</td>
     </tr>
     <tr>
-        <td>Author: </td><td>&nbsp;</td><td>{{ author }}</td>
+        <td>Author: </td><td>&nbsp;</td><td>{{ thesislink.author }}</td>
     </tr>
     <tr>
         <td>As Contributor: </td><td>&nbsp;</td>
diff --git a/theses/templates/theses/vet_thesislink_requests.html b/theses/templates/theses/vet_thesislink_requests.html
index 2a74df850..491723072 100644
--- a/theses/templates/theses/vet_thesislink_requests.html
+++ b/theses/templates/theses/vet_thesislink_requests.html
@@ -16,7 +16,7 @@
   <hr>
   <div class="row">
     <div class="col-8">
-      {{ thesislink_to_vet.header_as_table }}
+      {% include "./_header_as_table.html" with thesislink=thesislink_to_vet %}
       <br />
       <h4>Abstract:</h4>
       <p>{{ thesislink_to_vet.abstract }}</p>
-- 
GitLab