aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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(())
}