sc: move cost order indicator to more appropriate column
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 21 Apr 2018 18:28:06 +0000 (20:28 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 10 May 2018 14:49:06 +0000 (16:49 +0200)
Free build column for building time.

sc.css
sc.plp

diff --git a/sc.css b/sc.css
index 9aba72854702d34218518b6f45d131e1d2810a2c..45d86382cd05ebd05180ef4c7f20fa74a98f2d3a 100644 (file)
--- a/sc.css
+++ b/sc.css
@@ -40,7 +40,7 @@ table h2 {
 .gas {
        color: #040;
 }
-.min {
+.min, .min a:not(:hover) {
        color: #004;
 }
 .unit-supply {
diff --git a/sc.plp b/sc.plp
index 711e4203e82617da25e7f6283889242f07d07717..b20e51df3597e6feda0506b2f8af7ea2233c6701 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -93,9 +93,9 @@ sub coltoggle {
 <thead><tr>
        <th><:= coltoggle(exists $get{order} ? 'race' : 'source' => '') :></th>
        <th><:= coltoggle(name => 'name') :></th>
-       <th class="val min" title=minerals>cost</th>
+       <th class="val min" title=minerals><:= coltoggle(cost => 'cost') :></th>
        <th class="val gas">gas</th>
-       <th class="val time"><:= coltoggle(qw'build cost') :></th>
+       <th class="val time">build</th>
        <th class="unit" colspan="2"><:= coltoggle(qw'size size') :></th>
        <th class="unit" colspan="2">attr</th>
        <th class="val unit-hp"><:= coltoggle(HP => 'hp') :></th>