Skip to content

Commit

Permalink
fix: invalid button logic for dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Oct 2, 2024
1 parent 07c6d70 commit 60872bb
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions intranet/templates/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,15 @@ <h2>{{ dashboard_header }}</h2>
<i class="fas fa-plus"></i>
Post
</a>
{% elif "show_all" not in request.GET %}
<a class="button" href="{% url view_announcements_url %}?{% query_transform request show_all=1 %}">
Show All
</a>
{% else %}
{% if "show_all" not in request.GET %}
<a class="button" href="{% url view_announcements_url %}?show_all=1">
Show All
</a>
{% else %}
{% if request.GET.show_all is not None and request.GET.show_all != "0" %}
<a class="button" href="{% url view_announcements_url %}">
<i class="fas fa-times"></i> Don't Show All
</a>
{% else %}
<a class="button" href="{% url view_announcements_url %}?{% query_transform request show_all=1 %}">
Show All
</a>
{% endif %}
<a class="button announcement-add" href="{% url 'add_announcement' %}">
<i class="fas fa-plus"></i>
Expand Down Expand Up @@ -239,7 +235,7 @@ <h3 class="club-announcements-header">
It is currently in beta release and is only available to select clubs.
If your club is interested in participating in the rollout, contact
<a href="mailto:[email protected]" class="announcement-link">[email protected]</a>
. The feature will be released to the entire TJ community in the near future.
. The feature will be released to the entire TJ community in the near future.
</div>
{% endif %}
<div class="club-announcement-filters">
Expand Down

0 comments on commit 60872bb

Please sign in to comment.