feat(corrections assignment): add convenience to table header

links look ugly in table headers so as a workaround we use an icon
instead for a much needed link in the corrections assignment table
This commit is contained in:
Steffen Jost 2019-07-25 07:48:12 +02:00
parent d838d36239
commit 56c2fccb84
2 changed files with 6 additions and 2 deletions

View File

@ -45,6 +45,7 @@ data Icon
| IconExamRegisterFalse
| IconCommentTrue
| IconCommentFalse
| IconLink
| IconFileDownload
| IconFileZip
| IconFileCSV
@ -71,6 +72,7 @@ iconText = \case
IconExamRegisterFalse -> "calendar-times"
IconCommentTrue -> "comment-alt"
IconCommentFalse -> "comment-slash" -- comment-alt-slash is not available for free
IconLink -> "link"
IconFileDownload -> "file-download"
IconFileZip -> "file-archive"
IconFileCSV -> "file-csv"

View File

@ -56,8 +56,10 @@
$# Always iterate over orderedSheetNames for consistent sorting! Newest first, except in this table
$forall shn <- orderedSheetNames
<th .table__th colspan=5>#{shn}
$# ^{simpleLinkI (SomeMessage MsgMenuCorrectors) (CSheetR tid ssh csh shn SCorrR)}
<th .table__th colspan=5>
$# Links currently look ugly in table headers; used an icon as a workaround:
^{simpleLink (toWidget iconLink) (CSheetR tid ssh csh shn SShowR)}
#{shn}
<tr .table__row .table__row--head>
<th .table__th>_{MsgNrSubmissionsTotal}
<th .table__th>_{MsgNrSubmissionsNotCorrected}