crabmail

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

commit 78fa77dbf5373befb71277584141c5c9f1f691b4
parent 52673de232a3ff8cbf582fc6204c4965f5dbf56b
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu, 16 Dec 2021 19:07:21 -0800

some style cleanup

Diffstat:
Msrc/main.rs | 19++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -135,16 +135,22 @@ impl<'a> MailThread<'a> { let tmp = html! { h1(class="page-title"): &root.subject; div { - a(href=&Config::global().url) { + a(href="../") { : &Config::global().list_name } } div { @ for message in &self.messages { hr; div(id=&message.id, class="message") { - div(class="bold") { + span(class="bold") { : &message.subject + } + @ if message.in_reply_to.is_some() { // TODO figure out match + a(title="replies-to", href=format!("#{}", message.in_reply_to.clone().unwrap())){ + : " ^ " + } } + br; a(href=format!("mailto:{}", &message.from.addr), class="addr bold") { : &message.from.to_string(); } @@ -155,16 +161,11 @@ impl<'a> MailThread<'a> { a(title="permalink", href=format!("#{}", &message.id)) { : " 🔗" } - @ if message.in_reply_to.is_some() { // TODO figure out match - a(title="replies-to", href=format!("#{}", message.in_reply_to.clone().unwrap())){ - : "Re:" - } - } - br; br; + br; br; div(class="email-body") { : Raw(utils::email_body(&message.body)) } - div(class="right"){ + div(class="bold right"){ a (href=message.mailto()) { :"✉️ reply" }