summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index ce50828..a39d08d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -49,10 +49,23 @@ fn render_message(message: &str, units: &[unit::Unit]) -> String {
h1 {
: "Units"
}
- ol {
+ table {
+ tr {
+ th {
+ : "Unit"
+ }
+ th {
+ : "Type"
+ }
+ }
@ for unit in units {
- li {
- : &unit.name
+ tr {
+ td {
+ : &unit.name
+ }
+ td {
+ : &unit.type_
+ }
}
}
}