We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ecf9da commit 6e79bf3Copy full SHA for 6e79bf3
templates/challenges.html
@@ -47,7 +47,10 @@ <h3 x-text="category"></h3>
47
<div class="col-sm-6 col-md-4 col-lg-3 my-3">
48
<button
49
class="challenge-button btn btn-dark w-100 h-100"
50
- :class="c.solved_by_me ? 'challenge-solved' : ''"
+ :class="[
51
+ c.solved_by_me ? 'challenge-solved' : '',
52
+ ...c.tags.map((tag) => `tag-${tag.value.replace(/ /g, '-')}`),
53
+ ];"
54
:value="c.id" @click="loadChallenge(c.id)"
55
>
56
0 commit comments