Skip to content

Commit

Permalink
Only display Show all for reviewers previous reviews if there's mor…
Browse files Browse the repository at this point in the history
…e to show (#4221)

This behaviors reflects the `Show all` logic of the other dashboard
submission table partial implementations
  • Loading branch information
wes-otf authored Nov 20, 2024
1 parent 8d348f3 commit 976fb9d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ <h3 class="text-xl mb-2">Your previous reviews</h3>

{% include "submissions/partials/submissions-inline.html" with submissions=my_reviewed.table.data row_layout="table" %}

<div class="border-x border-b flex items-center justify-center py-3 font-semibold">
<a href="{{ my_reviewed.url }}?query=reviewed-by:@me">{% trans "Show all" %}</a>
</div>
{% if my_reviewed.display_more %}
<div class="border-x border-b flex items-center justify-center py-3 font-semibold">
<a href="{{ my_reviewed.url }}?query=reviewed-by:@me">{% trans "Show all" %}</a>
</div>
{% endif %}
</div>
{% endif %}

Expand Down

0 comments on commit 976fb9d

Please sign in to comment.