summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2020-11-04 22:54:37 +0100
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2020-11-04 22:54:37 +0100
commit69d77e8a05bec240f99a2045605876e6f6cd8aa3 (patch)
treee9b4b79c4a7af0ce75712c03df357763c5674803
parenta65c91f28529d0bd444334e6dfed37b173c7e649 (diff)
added back button in readmail; corrected generated html
-rw-r--r--public/style.css5
-rw-r--r--templates/layouts/mainlayout.html.ep2
-rw-r--r--templates/webmail/readmail.html.ep8
3 files changed, 11 insertions, 4 deletions
diff --git a/public/style.css b/public/style.css
index 287a653..fd39792 100644
--- a/public/style.css
+++ b/public/style.css
@@ -331,6 +331,9 @@ p#empty {
padding: 25px 0 25px 1cm;
margin: 0;
}
+nav#read-nav {
+ margin-top: 10px;
+}
/* ANIMATIONS */
@@ -344,4 +347,4 @@ p#empty {
0% { opacity: 1; }
90% { opacity: 1; }
100% { opacity: 0; display: none; }
-} \ No newline at end of file
+}
diff --git a/templates/layouts/mainlayout.html.ep b/templates/layouts/mainlayout.html.ep
index e084578..782bcdd 100644
--- a/templates/layouts/mainlayout.html.ep
+++ b/templates/layouts/mainlayout.html.ep
@@ -1,8 +1,8 @@
<!DOCTYPE html>
-<meta charset=UTF-8>
<html lang="<%= $lang %>">
<head>
+ <meta charset=UTF-8>
<title> <%= stash('title') || 'JWebmail' %> </title>
<link href="/style.css" rel=stylesheet>
</head>
diff --git a/templates/webmail/readmail.html.ep b/templates/webmail/readmail.html.ep
index f537d96..79dbff7 100644
--- a/templates/webmail/readmail.html.ep
+++ b/templates/webmail/readmail.html.ep
@@ -32,8 +32,8 @@
<div class=show-body>
% my $x = mime_render($_->{type}, $_->{val});
%== $x;
-% last if $x;
</div>
+% last if $x;
% }
% }
% elsif (ref $body eq 'HASH') {
@@ -49,4 +49,8 @@
</div>
% }
-</div> \ No newline at end of file
+<nav id=read-nav>
+ <a href="javascript:history.back()" class=btn> <%= l 'home' %> </a>
+</nav>
+
+</div>