From 8ba3c2f80cefb7eb46c89f253849634c31721f3e Mon Sep 17 00:00:00 2001
From: jonasled <jonas@jonasled.de>
Date: Mon, 11 Nov 2019 10:13:24 +0100
Subject: [PATCH] added back button

---
 main.py                    | 2 +-
 templates/editEntries.html | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.py b/main.py
index 3b0d466..a8d80a3 100644
--- a/main.py
+++ b/main.py
@@ -304,7 +304,7 @@ def ownLinks():
             for entries in entriesList: #for every entrie in the database add a line to the table
                 response = response + "<tr>\n<td>" + entries[0] + "</td>\n<td>" + entries[1] + '</td>\n<td><a id="red" href="/user/delete?link=' + escape(entries[1]) + '">delete</a> <a href="#" id="dialog-link" onclick="buttonListener(\'' + entries[1] + '\', this)">QR</a></tr>\n'
             response = response + "</table>" #Close the table
-            if(len(entriesList) == 0): response = 'you have no shorten links. <a href="/">back</a>' #If user has no shorten links make this message with a back button
+            if(len(entriesList) == 0): response = 'you have no shorten links.' #If user has no shorten links make this message
         except:
             abort(500) #Shouldn't happen, 500 means internal server error
         return render_template('editEntries.html', content=response, loginbar=loginbar, cookieNotice=cookieNotice) #Put the table and the login div inside the template and server it to the user
diff --git a/templates/editEntries.html b/templates/editEntries.html
index 3d540a1..bbd79ac 100644
--- a/templates/editEntries.html
+++ b/templates/editEntries.html
@@ -14,6 +14,7 @@
       <div class="login-page">
          <div class="form">
             {{content | safe}}
+            <p><a href="/">back</a></p>
          </div>
       </div>
       <!-- ui-dialog -->
-- 
GitLab