Skip to content

Commit

Permalink
user_profile: profile: Show different card color for issue levels
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Oct 12, 2023
1 parent 93a3a5f commit 8dde8ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions user_profile/templates/user_profile/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h6 class="">
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Mentor">
@{{ active_issue.issue.mentor }}
</a>
<a class="btn btn-rounded btn-info">{{ active_issue.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" style="background-color: {{ active_issue.issue.get_levelcolor_display }} !important;">{{ active_issue.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Points">{{ active_issue.issue.points }}</a>
{% if active_issue.issue.is_restricted %}
<a class="btn btn-rounded btn-warning" data-mdb-toggle="tooltip" title="Restricted">
Expand Down Expand Up @@ -136,7 +136,7 @@ <h6 class="">
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Mentor">
@{{ request.issue.mentor }}
</a>
<a class="btn btn-rounded btn-info">{{ request.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" style="background-color: {{ request.issue.get_levelcolor_display }} !important;">{{ request.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Points">{{ request.issue.points }}</a>
{% if request.issue.is_restricted %}
<a class="btn btn-rounded btn-warning" data-mdb-toggle="tooltip" title="Restricted">
Expand Down Expand Up @@ -344,7 +344,7 @@ <h6 class="">

<p class="card-text">
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Requester">@{{ request.requester }}</a>
<a class="btn btn-rounded btn-info">{{ request.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" style="background-color: {{ request.issue.get_levelcolor_display }} !important;">{{ request.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Points">{{ request.issue.points }}</a>
{% if request.issue.is_restricted %}
<a class="btn btn-rounded btn-warning" data-mdb-toggle="tooltip" title="Restricted">
Expand Down Expand Up @@ -396,7 +396,7 @@ <h6 class="">
</h6>

<p class="card-text">
<a class="btn btn-rounded btn-info">{{ issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" style="background-color: {{ issue.get_levelcolor_display }} !important;">{{ issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Points">{{ issue.points }}</a>
{% if issue.is_restricted %}
<a class="btn btn-rounded btn-warning" data-mdb-toggle="tooltip" title="Restricted">
Expand Down Expand Up @@ -439,7 +439,7 @@ <h6 class="">
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Mentor">
@{{ active_issue.contributor }}
</a>
<a class="btn btn-rounded btn-info">{{ active_issue.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" style="background-color: {{ active_issue.issue.get_levelcolor_display }} !important;">{{ active_issue.issue.get_level_display }}</a>
<a class="btn btn-rounded btn-info" data-mdb-toggle="tooltip" title="Points">{{ active_issue.issue.points }}</a>
{% if active_issue.issue.is_restricted %}
<a class="btn btn-rounded btn-warning" data-mdb-toggle="tooltip" title="Restricted">
Expand Down

0 comments on commit 8dde8ed

Please sign in to comment.