aboutsummaryrefslogtreecommitdiff
path: root/src/get_routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/get_routes.rs')
-rw-r--r--src/get_routes.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/get_routes.rs b/src/get_routes.rs
index 7576d60..73c9301 100644
--- a/src/get_routes.rs
+++ b/src/get_routes.rs
@@ -166,6 +166,7 @@ fn log_blob<C: Controller>(
// the very first commit of the branch
commits.push(prev_commit);
}
+ page.body.push_str("<div>");
let mut prev_date = None;
for c in commits {
let date = NaiveDateTime::from_timestamp(c.time().seconds(), 0).date();
@@ -173,8 +174,10 @@ fn log_blob<C: Controller>(
if prev_date != None {
page.body.push_str("</ul>");
}
- page.body
- .push_str(&format!("{}<ul>", date.format("%b %d, %Y")));
+ page.body.push_str(&format!(
+ "<h2 class=regular-text>{}</h2><ul>",
+ date.format("%b %d, %Y")
+ ));
}
page.body.push_str(&format!(
@@ -185,7 +188,7 @@ fn log_blob<C: Controller>(
));
prev_date = Some(date);
}
- page.body.push_str("</ul>");
+ page.body.push_str("</ul></div>");
Ok(page.into())
}