summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2017-05-24 08:44:49 -0400
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2017-05-24 08:44:49 -0400
commit4ef16c5811344e074f6f0a1a16328af866fa5a79 (patch)
tree178a2f611ea8f73ab2016fe3b5cfd89d99c93b08 /src/main.rs
parentcd986ee64cf627ab0d39138e2cb24b115c4032b4 (diff)
Print table of units.
Diffstat (limited to 'src/main.rs')
-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_
+ }
}
}
}