|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
4 | 6 | <title>#title#</title> |
5 | 7 | <style> |
6 | | - td.warning {background-color:#FFCC66;} |
7 | | - td.better {background-color:#00FF00;} |
8 | | - td.warningPerformance {background-color:#FFFC66;} |
9 | | - td.betterPerformance {background-color:#00FAFF;} |
10 | | - a span.tooltip {display:none;} |
11 | | - a:hover span.tooltip {position:fixed;top:30px;left:20px;display:inline;border:2px solid black;background-color:white;} |
12 | | - a.dot {border-bottom: 1px dotted #000; text-decoration: none;} |
| 8 | + :root { |
| 9 | + --text: #1f2328; |
| 10 | + --muted: #59636e; |
| 11 | + --border: #d8dee4; |
| 12 | + --rule: #eaeef2; |
| 13 | + --head: #f3f5f8; |
| 14 | + --page: #f6f8fa; |
| 15 | + --card: #ffffff; |
| 16 | + --accent: #2f6fd0; |
| 17 | + --invalid: #f6c3c3; |
| 18 | + --invalid-text: #b42318; |
| 19 | + } |
| 20 | + body { |
| 21 | + margin: 0 24px 24px; |
| 22 | + background: var(--page); |
| 23 | + color: var(--text); |
| 24 | + font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| 25 | + } |
| 26 | + a {color: var(--accent); text-decoration: none;} |
| 27 | + a:hover {text-decoration: underline;} |
| 28 | + h1 {font-size: 20px; margin: 0;} |
| 29 | + h2 {font-size: 17px; margin: 24px 0 8px;} |
| 30 | + h3 {font-size: 16px; margin: 0 0 4px;} |
| 31 | +
|
| 32 | + header.toolbar { |
| 33 | + position: sticky; top: 0; z-index: 1; |
| 34 | + display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; |
| 35 | + margin: 0 -24px 16px; padding: 10px 24px; |
| 36 | + background: var(--card); border-bottom: 1px solid var(--border); |
| 37 | + } |
| 38 | + header.toolbar .label {color: var(--muted);} |
| 39 | +
|
| 40 | + .switch {display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--card);} |
| 41 | + .switch button { |
| 42 | + font: inherit; font-size: 13px; padding: 4px 12px; margin: 0; |
| 43 | + border: 0; background: transparent; color: var(--text); cursor: pointer; |
| 44 | + } |
| 45 | + .switch button + button {border-left: 1px solid var(--border);} |
| 46 | + .switch button:hover {background: var(--head);} |
| 47 | + .switch button[aria-pressed="true"] {background: var(--accent); color: #fff;} |
| 48 | + .switch button:focus-visible {outline: 2px solid var(--accent); outline-offset: -2px;} |
| 49 | +
|
| 50 | + .stats {display: flex; flex-wrap: wrap; gap: 12px;} |
| 51 | + .stat {background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; min-width: 120px;} |
| 52 | + .stat .value {display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums;} |
| 53 | + .stat .name {color: var(--muted);} |
| 54 | + .stat.invalid {border-color: var(--invalid);} |
| 55 | + .stat.invalid .value {color: var(--invalid-text);} |
| 56 | + p.note {color: var(--muted); max-width: 70em;} |
| 57 | +
|
| 58 | + table {border-collapse: collapse; margin: 4px 0 12px; background: var(--card); font-variant-numeric: tabular-nums;} |
| 59 | + caption {caption-side: top; text-align: left; color: var(--muted); font-size: 12px; padding: 4px 0;} |
| 60 | + th, td {padding: 3px 10px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap;} |
| 61 | + th {background: var(--head); font-weight: 600; border-bottom: 1px solid var(--border);} |
| 62 | + th:first-child, td:first-child {text-align: left;} |
| 63 | + table.branches td:nth-child(-n+3) {text-align: left;} |
| 64 | + table.versions td, table.versions th {text-align: left;} |
| 65 | + td.warning {background-color: #ffd27a;} |
| 66 | + td.better {background-color: #9be89b;} |
| 67 | + td.warningPerformance {background-color: #FFFC66;} |
| 68 | + td.betterPerformance {background-color: #00FAFF;} |
| 69 | + .view-invalid th {background: #fbe3e3;} |
| 70 | +
|
| 71 | + section.library {background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px 4px; margin: 12px 0;} |
| 72 | + section.library table {background: transparent;} |
| 73 | + p.version {margin: 0 0 6px; color: var(--muted);} |
| 74 | + .badge {display: inline-block; margin: 6px 0; background: var(--invalid); color: var(--invalid-text); font-weight: 600; border-radius: 999px; padding: 2px 10px;} |
| 75 | + span.cross {color: #d00000; font-weight: bold;} |
| 76 | + details {margin: 4px 0 8px;} |
| 77 | + summary {cursor: pointer; color: var(--muted);} |
| 78 | + details p {margin: 4px 0 0 16px;} |
| 79 | +
|
| 80 | + [data-view] > .view {display: none;} |
| 81 | + [data-view="valid"] > .view-valid, |
| 82 | + [data-view="all"] > .view-all, |
| 83 | + [data-view="invalid"] > .view-invalid {display: block;} |
13 | 84 | </style> |
14 | 85 | </head> |
15 | 86 | <body> |
| 87 | +<header class="toolbar"> |
| 88 | + <h1>#title#</h1> |
| 89 | + <span class="label">Invalid models:</span> |
| 90 | + #viewSwitch# |
| 91 | +</header> |
16 | 92 | <h2>Statistics</h2> |
17 | | -<table> |
18 | | -<tr><td>Number of libraries</td><td>#numlibs#</td></tr> |
19 | | -<tr><td>Number of models</td><td>#nummodels#</td></tr> |
20 | | -</table> |
| 93 | +<div class="stats"> |
| 94 | + <div class="stat"><span class="value">#numlibs#</span><span class="name">libraries</span></div> |
| 95 | + <div class="stat"><span class="value">#nummodels#</span><span class="name">models</span></div> |
| 96 | + <div class="stat invalid"><span class="value">#numinvalid#</span><span class="name">invalid models</span></div> |
| 97 | +</div> |
| 98 | +<p class="note">A model is invalid if the newest run of #invalidBranch# on its library translated it only because |
| 99 | +--warnNonStandardModelica turned the errors of non-standard Modelica into warnings. The buttons at the top |
| 100 | +select if the counts and times leave the invalid models out (the default), include them, or count only them.</p> |
21 | 101 | <h2>Tested branches</h2> |
22 | | -<table> |
23 | | -<tr><th>Branch</th><th>Version</th><th>Build time</th><th>Execution time</th><th>Simulation time</th><th>#simulateLabel#</th><th># Verify</th><th># Total</th></tr> |
| 102 | +<div id="branches" data-view="valid"> |
24 | 103 | #branches# |
25 | | -</table> |
| 104 | +</div> |
| 105 | +<h2>Libraries</h2> |
26 | 106 | #entries# |
| 107 | +<script> |
| 108 | +for (const button of document.querySelectorAll('.switch button')) { |
| 109 | + button.addEventListener('click', () => { |
| 110 | + for (const b of button.parentElement.querySelectorAll('button')) { |
| 111 | + b.setAttribute('aria-pressed', b === button); |
| 112 | + } |
| 113 | + for (const container of document.querySelectorAll('[data-view]')) { |
| 114 | + container.dataset.view = button.dataset.show; |
| 115 | + } |
| 116 | + }); |
| 117 | +} |
| 118 | +</script> |
27 | 119 | </body> |
28 | 120 | </html> |
0 commit comments