Skip to content

Commit

Permalink
Merge pull request #4123 from gitcoinco/fix/hide-rating
Browse files Browse the repository at this point in the history
add condition to rating
  • Loading branch information
danlipert authored Apr 4, 2019
2 parents 16781f8 + 71b6011 commit 74dd8b1
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 74dd8b1

Please sign in to comment.