Skip to content

Commit 60872bb

Browse files
fix: invalid button logic for dashboard
1 parent 07c6d70 commit 60872bb

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

intranet/templates/dashboard/dashboard.html

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,15 @@ <h2>{{ dashboard_header }}</h2>
129129
<i class="fas fa-plus"></i>
130130
Post
131131
</a>
132-
{% elif "show_all" not in request.GET %}
133-
<a class="button" href="{% url view_announcements_url %}?{% query_transform request show_all=1 %}">
134-
Show All
135-
</a>
136132
{% else %}
137-
{% if "show_all" not in request.GET %}
138-
<a class="button" href="{% url view_announcements_url %}?show_all=1">
139-
Show All
140-
</a>
141-
{% else %}
133+
{% if request.GET.show_all is not None and request.GET.show_all != "0" %}
142134
<a class="button" href="{% url view_announcements_url %}">
143135
<i class="fas fa-times"></i> Don't Show All
144136
</a>
137+
{% else %}
138+
<a class="button" href="{% url view_announcements_url %}?{% query_transform request show_all=1 %}">
139+
Show All
140+
</a>
145141
{% endif %}
146142
<a class="button announcement-add" href="{% url 'add_announcement' %}">
147143
<i class="fas fa-plus"></i>
@@ -239,7 +235,7 @@ <h3 class="club-announcements-header">
239235
It is currently in beta release and is only available to select clubs.
240236
If your club is interested in participating in the rollout, contact
241237
<a href="mailto:[email protected]" class="announcement-link">[email protected]</a>
242-
. The feature will be released to the entire TJ community in the near future.
238+
. The feature will be released to the entire TJ community in the near future.
243239
</div>
244240
{% endif %}
245241
<div class="club-announcement-filters">

0 commit comments

Comments
 (0)