Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit 9e8d0db

Browse files
committed
some small tweaks; center-align +/-, pmichaud++
1 parent 7701afe commit 9e8d0db

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

features.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= ABBREVIATIONS
2-
rm Rakudo (branch master)
3-
rn Rakudo (branch nom)
2+
rm Rakudo/master
3+
rn Rakudo/nom
44
n Niecza
55

66
= Basics

process.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ sub write_html {
8585
my @row = @$_;
8686
$ht_row{feature} = shift @row;
8787
$ht_row{compilers} = [ map {
88-
{ status => $status_map{$row[$_] // ''} }
88+
{
89+
status => $row[$_] // '',
90+
class => $status_map{$row[$_] // ''},
91+
}
8992
} 0..($index - 1) ];
9093
push @rows, \%ht_row;
9194
}

template.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,23 @@
88
.implemented { background-color: green }
99
.partial { background-color: yellow }
1010
.missing { background-color: red }
11+
.implemented, .partial, .missing {
12+
text-align: center
13+
}
1114
</style>
1215

1316
</head>
1417
<body>
1518
<h1>Feature comparison of Perl 6 compilers</h1>
19+
20+
<h2>Legend</h2>
21+
<table>
22+
<tr><td class="implemented">+</td> <td>implemented</td></tr>
23+
<tr><td class="partial">+-</td><td>partially implemented</td></tr>
24+
<tr><td class="missing">-</td> <td>not yet implemented</td></tr>
25+
</table>
26+
27+
<h2>Features</h2>
1628
<table>
1729
<thead>
1830
<tr>
@@ -30,7 +42,7 @@ <h1>Feature comparison of Perl 6 compilers</h1>
3042
<%else%>
3143
<td><%var feature%></td>
3244
<%loop compilers%>
33-
<td class="<%var status%>">
45+
<td class="<%var class%>">
3446
<%var status%>
3547
</td>
3648
<%/loop%>
@@ -39,6 +51,7 @@ <h1>Feature comparison of Perl 6 compilers</h1>
3951
<%/loop%>
4052
</tbody>
4153
</table>
54+
4255
</body>
4356
</html>
4457

0 commit comments

Comments
 (0)