-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: invalid button logic for dashboard
- Loading branch information
1 parent
07c6d70
commit 60872bb
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
@@ -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"> | ||
|