Skip to content

Commit 12bf13a

Browse files
committed
simplify error column in log parser table
1 parent 250f06f commit 12bf13a

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

src/SMAPI.Web/Views/LogParser/Index.cshtml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -354,16 +354,9 @@
354354
</td>
355355

356356
@* error summary *@
357-
<td v-if="mod.Loaded && !mod.Errors" class="color-green">no errors</td>
358-
<td v-else-if="!mod.Loaded" class="color-red">
359-
<template v-if="!mod.Errors">failed to load</template>
360-
<template v-else-if="mod.Errors == 1">failed to load + 1 error</template>
361-
<template v-else>failed to load + {{mod.Errors}} errors</template>
362-
</td>
363-
<template v-else class="color-red">
364-
<template v-if="mod.Errors == 1">1 error</template>
365-
<template v-else>{{mod.Errors}} errors</template>
366-
</template>
357+
<td v-if="!mod.Loaded" class="has-errors">failed to load</td>
358+
<td v-else-if="mod.Errors" class="has-errors">{{mod.Errors}} {{mod.Errors == 1 ? "error" : "errors"}}</td>
359+
<td v-else class="no-errors">no errors</td>
367360
</tr>
368361
</table>
369362

src/SMAPI.Web/wwwroot/Content/css/log-parser.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ table caption {
127127
min-width: 400px;
128128
}
129129

130-
#mods .color-red {
130+
#mods td.has-errors {
131131
color: red;
132132
}
133133

134-
#mods .color-green {
134+
#mods td.no-errors {
135135
color: green;
136136
}
137137

0 commit comments

Comments
 (0)