ui: Also color score on works page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
675c462a55
commit
5140eafc51
@ -120,7 +120,16 @@
|
|||||||
{#await getScore(work)}
|
{#await getScore(work)}
|
||||||
<div class="spinner-border spinner-border-sm" role="status"></div>
|
<div class="spinner-border spinner-border-sm" role="status"></div>
|
||||||
{:then score}
|
{:then score}
|
||||||
{score.score}
|
<span
|
||||||
|
class="badge"
|
||||||
|
class:bg-success={score.score >= 18}
|
||||||
|
class:bg-info={score.score < 18 && score.score >= 15}
|
||||||
|
class:bg-warning={score.score < 15 && score.score >= 9}
|
||||||
|
class:bg-danger={score.score < 9}
|
||||||
|
class:bg-dark={score.score == "N/A"}
|
||||||
|
>
|
||||||
|
{score.score}
|
||||||
|
</span>
|
||||||
{:catch error}
|
{:catch error}
|
||||||
<i class="bi text-warning bi-exclamation-triangle-fill" title={error}></i>
|
<i class="bi text-warning bi-exclamation-triangle-fill" title={error}></i>
|
||||||
{/await}
|
{/await}
|
||||||
|
Reference in New Issue
Block a user