summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--html.c10
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},
 	};