summaryrefslogtreecommitdiffstats
path: root/front_end/templates/debug.rs.html
blob: 7939d1b6eaec8b6ff64ce9de60bf1a0ffd27d8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@use semver::Version as SemVer;
@use crate::CompatRange;
@use std::collections::BTreeMap;

@(table: (Vec<SemVer>, BTreeMap<&SemVer, CompatRange>))

<h1>test</h1>

<table>
    <thead><tr><th></th>
        @for rustc_ver in &table.0 {
            <th>@rustc_ver</th>
        }
    </tr></thead>
    <tbody>
        @for (v, row) in table.1.into_iter().rev() {
            <tr>
                <th>@v</th>
                @for rustc_ver in &table.0 {
                    <td>
                        @if rustc_ver >= &row.oldest_ok && rustc_ver <= &row.newest_bad {
                            ?
                        } else {
                            @if rustc_ver == &row.oldest_ok {
                                ✅
                            }
                            @if rustc_ver > &row.oldest_ok {
                                ✓
                            }
                            @if rustc_ver == &row.newest_bad {
                                ❌
                            }
                            @if rustc_ver < &row.newest_bad {
                                𐄂
                            }
                        }
                    </td>
               }
            </tr>
        }
    </tbody>
</table>