Commit ·
d4f1ebe
1
Parent(s): 406c838
Hide '0 inputs' badge on problem cards
Browse filesOnly show the inputs badge when num_inputs is non-zero, since
'0 inputs' is redundant information.
- templates/index.html +1 -1
templates/index.html
CHANGED
|
@@ -282,7 +282,7 @@ function renderProblems(problems) {
|
|
| 282 |
</div>
|
| 283 |
<div class="problem-card-body">
|
| 284 |
<span class="badge ${badgeClass(problem.source)}">${problem.source}</span>
|
| 285 |
-
<span class="badge badge-info">${problem.num_inputs} inputs</span>
|
| 286 |
</div>
|
| 287 |
<div class="problem-card-info">
|
| 288 |
<span>Index: ${problem.idx}</span>
|
|
|
|
| 282 |
</div>
|
| 283 |
<div class="problem-card-body">
|
| 284 |
<span class="badge ${badgeClass(problem.source)}">${problem.source}</span>
|
| 285 |
+
${problem.num_inputs ? `<span class="badge badge-info">${problem.num_inputs} inputs</span>` : ''}
|
| 286 |
</div>
|
| 287 |
<div class="problem-card-info">
|
| 288 |
<span>Index: ${problem.idx}</span>
|