diff options
author | June McEnroe <june@causal.agency> | 2020-04-16 11:26:03 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-16 11:26:03 -0400 |
commit | 767aef8f48f5707c8915c1530056f80fa1b99ebf (patch) | |
tree | 4dae99bc1a6ad4fe015280b9b9d4cad8f1b4eb6e | |
parent | Move message fragment link to subject (diff) | |
download | bubger-767aef8f48f5707c8915c1530056f80fa1b99ebf.tar.gz bubger-767aef8f48f5707c8915c1530056f80fa1b99ebf.zip |
Add subject and recipient HTML classes
-rw-r--r-- | html.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html.c b/html.c index 22fafd5..11bc244 100644 --- a/html.c +++ b/html.c @@ -54,7 +54,7 @@ static int htmlAddressList(FILE *file, const char *class, struct AddressList list) { if (!list.len) return 0; const char *template = TEMPLATE( - <ul class="[class]"> + <ul class="recipient [class]"> ); struct Variable vars[] = { { "class", class }, @@ -105,7 +105,7 @@ int htmlMessageOpen(FILE *file, const struct Envelope *envelope) { const char *template = TEMPLATE( <article class="message" id="[messageID]"> <header> - <h2><a href="[fragment]">[subject]</a></h2> + <h2 class="subject"><a href="[fragment]">[subject]</a></h2> <address class="from"> <a href="[mailto]">[from]</a> </address> @@ -116,19 +116,19 @@ int htmlMessageOpen(FILE *file, const struct Envelope *envelope) { </ul> </nav> ); + char *fragment = htmlFragment(envelope); char *mailto = htmlMailto(envelope); + char *mbox = htmlMbox(envelope); char utc[sizeof("0000-00-00T00:00:00Z")]; strftime(utc, sizeof(utc), "%FT%TZ", gmtime(&envelope->time)); - char *fragment = htmlFragment(envelope); - char *mbox = htmlMbox(envelope); struct Variable vars[] = { { "messageID", envelope->messageID }, + { "fragment", fragment }, { "subject", envelope->subject }, { "mailto", mailto }, { "from", addressName(envelope->from) }, { "utc", utc }, { "date", envelope->date }, - { "fragment", fragment }, { "mbox", mbox }, {0}, }; |