diff options
author | Kornel <kornel@geekhood.net> | 2019-08-31 17:39:47 +0100 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2019-08-31 17:39:47 +0100 |
commit | e8bd8251a4ba145fc1749f6ab5c691cbd83698b9 (patch) | |
tree | d8014f6420e57608aa114b3a081f820c191ff2cd /front_end/templates/debug.rs.html | |
parent | db5fdf5d03cdf3d8186ea19475e4dc30dd8dfd06 (diff) |
Debug page dumping version compat
Diffstat (limited to 'front_end/templates/debug.rs.html')
-rw-r--r-- | front_end/templates/debug.rs.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/front_end/templates/debug.rs.html b/front_end/templates/debug.rs.html new file mode 100644 index 0000000..034085d --- /dev/null +++ b/front_end/templates/debug.rs.html @@ -0,0 +1,33 @@ +@use semver::Version as SemVer; +@use kitchen_sink::Compat; + +@(compat_table: (Vec<SemVer>, Vec<(SemVer, Vec<Option<Compat>>)>)) + +<h1>test</h1> + +<table> + <thead><tr><th></th> + @for v in compat_table.0.into_iter().rev() { + <th>@v</th> + } + </tr></thead> + <tbody> + @for (v, row) in compat_table.1.into_iter().rev() { + <tr> + <th>@v</th> + @for c in row.into_iter().rev() { + <td> + @if let Some(c) = c { + @if c == Compat::VerifiedWorks { + ✅ + } + @if c == Compat::Incompatible { + ❌ + } + } + </td> + } + </tr> + } + </tbody> +</table> |