crabmail

Static HTML email archive viewer in Rust
git clone git://git.alexwennerberg.com/crabmail
Log | Files | Refs | README | LICENSE

commit 52673de232a3ff8cbf582fc6204c4965f5dbf56b
parent aa2aa36634029f880ed405d905ef5cb52e5fe1b7
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu, 16 Dec 2021 18:59:38 -0800

Add home link

Diffstat:
Msrc/main.rs | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -92,6 +92,7 @@ impl<'a> ThreadList<'a> { pub fn write_to_file(&self, out_dir: &Path) -> Result<()> { let tmp = html! { h1(class="page-title"): &Config::global().list_name; + a(href=format!("mailto:{}", &Config::global().list_email)) { : &Config::global().list_email } @@ -133,7 +134,11 @@ impl<'a> MailThread<'a> { let root = self.messages[0]; let tmp = html! { h1(class="page-title"): &root.subject; - div { + div { + a(href=&Config::global().url) { + : &Config::global().list_name + } + } div { @ for message in &self.messages { hr; div(id=&message.id, class="message") {