Skip to content

Commit

Permalink
add condition to rating
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Apr 4, 2019
1 parent 16781f8 commit 71b6011
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/dashboard/templates/profiles/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ <h1 class="profile-header__handle">
</div>
</div>
{% endif %}
{% include "shared/rate_bounties.html" %}
{% if is_my_profile and not hidden %}
{% include "shared/rate_bounties.html" %}
{% endif %}
</div>

<div class="container">
Expand Down
4 changes: 2 additions & 2 deletions app/dashboard/templates/shared/rate_bounties.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% endcomment %}
{% load i18n staticfiles %}
<div class="container">

{% if unrated_contributed_bounties|length > 0 or unrated_funded_bounties|length > 0 %}
<ul class="nav nav-tabs border-0" id="ratingTabs" role="tablist">
<li class="nav-item">
<a class="nav-link active text-uppercase border-0" id="rating-tab" data-toggle="tab" href="#rating" role="tab" aria-controls="rating" aria-selected="false">{% trans "Rate your bounties" %}</a>
Expand Down Expand Up @@ -104,6 +104,6 @@
</div>

</div>

{% endif %}

</div>

0 comments on commit 71b6011

Please sign in to comment.