chore: use css for strikethrough decoration

This commit is contained in:
Wolfgang Witt 2021-03-19 17:23:36 +01:00 committed by Gregor Kleen
parent ea32fdfa91
commit 22cc5f13a6
2 changed files with 18 additions and 46 deletions

View File

@ -971,7 +971,7 @@ th, td
right: 5px
top: 5px
.occurrence--not-registered, .no-bonus, .allocation-course--excluded, .allocation-course--inactive
.occurrence--not-registered, .no-bonus, .allocation-course--excluded, .allocation-course--inactive, .occurrence--ignored
text-decoration: line-through
.result

View File

@ -27,53 +27,25 @@ $newline never
<tbody>
$forall Entity occId ExamOccurrence{ examOccurrenceName, examOccurrenceRoom, examOccurrenceStart, examOccurrenceEnd, examOccurrenceDescription, examOccurrenceCapacity } <- occurrences
<tr .table__row>
<td .table__td>
$if isIgnored occId
<s>
_{examOccurrenceName}
$else
_{examOccurrenceName}
<td .table__td>
$if isIgnored occId
<s>
_{loadProp (occLoad occId) examOccurrenceCapacity}
$else
_{loadProp (occLoad occId) examOccurrenceCapacity}
<td .table__td>
<td .table__td :isIgnored occId:.occurrence--ignored>
_{examOccurrenceName}
<td .table__td :isIgnored occId:.occurrence--ignored>
_{loadProp (occLoad occId) examOccurrenceCapacity}
<td .table__td :isIgnored occId:.occurrence--ignored>
$maybe nudgeWgt' <- Map.lookup occId nudgeWgt
^{nudgeWgt'}
$maybe ignoreRoomWgt' <- Map.lookup occId ignoreRoomWgt
^{ignoreRoomWgt'}
<td .table__td>
$if isIgnored occId
<s>
$maybe mappingWgt <- occMapping occId
^{mappingWgt}
$else
$maybe mappingWgt <- occMapping occId
^{mappingWgt}
<td .table__td>
$if isIgnored occId
<s>
$maybe room <- examOccurrenceRoom
^{roomReferenceWidget room}
$nothing
_{MsgExamOccurrenceRoomIsUnset}
$else
$maybe room <- examOccurrenceRoom
^{roomReferenceWidget room}
$nothing
_{MsgExamOccurrenceRoomIsUnset}
<td .table__td>
$if isIgnored occId
<s>
^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}
$else
^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}
<td .table__td>
<td .table__td :isIgnored occId:.occurrence--ignored>
$maybe mappingWgt <- occMapping occId
^{mappingWgt}
<td .table__td :isIgnored occId:.occurrence--ignored>
$maybe room <- examOccurrenceRoom
^{roomReferenceWidget room}
$nothing
_{MsgExamOccurrenceRoomIsUnset}
<td .table__td :isIgnored occId:.occurrence--ignored>
^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}
<td .table__td :isIgnored occId:.occurrence--ignored>
$maybe desc <- examOccurrenceDescription
$if isIgnored occId
<s>
#{desc}
$else
#{desc}
#{desc}