Skip to content

Commit

Permalink
Merge pull request #174 from ShouryaMishra2006/lesson
Browse files Browse the repository at this point in the history
Added different colors for different levels
  • Loading branch information
meisabhishekpatel authored Oct 11, 2024
2 parents d581cbc + 90fb208 commit 92f7689
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions home/templates/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ <h6 class="">
<th scope="col"></th>
</tr>
</thead>

{% for issue in issues %}
<tbody class="bg-light">
<tr class="align-middle text-center">
Expand All @@ -194,7 +193,20 @@ <h6 class="">
<td>{{ issue.project.domain }}</td>
<td>@{{ issue.mentor }}</td>
<td>{{ issue.points }}</td>
<td><a class="btn btn-rounded btn-info mt-0" data-mdb-toggle="tooltip" title="Level">{{ issue.get_level_display }}</a></td>
<td>
<a class="btn btn-rounded
{% if issue.get_level_display == 'Hard' %}
btn-danger
{% elif issue.get_level_display == 'Medium' %}
btn-warning
{% elif issue.get_level_display == 'Easy' %}
btn-success
{% else %}
btn-info
{% endif %}
mt-0" data-mdb-toggle="tooltip" title="Level">{{ issue.get_level_display }}
</a>
</td>
<td>
{% if issue.is_restricted %}
<button data-mdb-toggle="tooltip"
Expand Down

0 comments on commit 92f7689

Please sign in to comment.