aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-09-26 13:24:19 +0200
committerAlex Auvolat <alex@adnab.me>2023-09-26 13:24:19 +0200
commitb4de4308953c027e1af43277e716dc756405c9e5 (patch)
tree9ed7f9ce171cf701e15efd83858f92de82186e89 /src
parentfff245eaa5db1289a652da41ff7826bd368d7180 (diff)
downloaddatagengo-b4de4308953c027e1af43277e716dc756405c9e5.tar.gz
datagengo-b4de4308953c027e1af43277e716dc756405c9e5.zip
Add modest amounts of css
Diffstat (limited to 'src')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 06c0a07..c882741 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1142,13 +1142,13 @@ fn format_index(batches: &[Batch], kanji_levels: &[(String, String)]) -> Result<
<title>List of batches</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
- <body>"#
+ <body><div class="index_page">"#
)?;
writeln!(f, r#"<p><a href="about.html">About / How-to</a></p><hr />"#)?;
writeln!(f, "<table>")?;
- writeln!(f, "<tr><th>Num</th><th>Level</th><th>Chars</th><th>Examples</th><th>B-1</th><th>B-2</th><th>Ignore</th></tr>")?;
+ writeln!(f, "<tr><th>Num</th><th>Level</th><th>Kanji</th><th>Examples</th><th>Lesson-1</th><th>Lesson-2</th><th>Ignore</th></tr>")?;
for (i, batch) in batches.iter().enumerate() {
writeln!(
f,
@@ -1176,7 +1176,7 @@ fn format_index(batches: &[Batch], kanji_levels: &[(String, String)]) -> Result<
writeln!(f, "<table>")?;
writeln!(
f,
- "<tr><th>Level</th><th>Count</th><th>Chars</th><th>Missing chars</th></tr>"
+ r#"<tr><th>Level</th><th>Count</th><th width="60%">Kanji</th><th>Missing kanji</th></tr>"#
)?;
for (lvl, chars) in kanji_levels.iter() {
if lvl == "N0+" || lvl.ends_with("-10") {
@@ -1196,7 +1196,7 @@ fn format_index(batches: &[Batch], kanji_levels: &[(String, String)]) -> Result<
}
writeln!(f, "</table>")?;
- write!(f, "</body></html>")?;
+ write!(f, "</div></body></html>")?;
f.flush()?;
Ok(())
}