Skip to content

Commit

Permalink
Took out toggle button for past and future terms. Changed messaged fo…
Browse files Browse the repository at this point in the history
…r no upcoming events in a specific program.
  • Loading branch information
stevensonmichel committed Jul 18, 2023
1 parent fff2942 commit d0c48fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/templates/events/event_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="text-center">Events List for {{selectedTerm.description}}</h1>
</div>
</div>
</div>
{% if user.isAdmin %}
{% if selectedTerm == g.current_term and user.isAdmin %}
<div class="row px-4">
<div class = "d-none d-sm-block col "></div>
<div class="form-check form-switch mb-2 col-auto">
Expand Down Expand Up @@ -77,8 +77,8 @@ <h1 class="text-center">Events List for {{selectedTerm.description}}</h1>
</tr>
</thead>
<tbody>
{% if events[-1].isPast %}
<tr> There are no upcoming events for this term </tr>
{% if selectedTerm == g.current_term and events[-1].isPast %}
<tr> There are no upcoming events for this program </tr>
{% endif %}
{% for event in events %}
<tr>
Expand Down Expand Up @@ -161,7 +161,7 @@ <h1 class="text-center">Events List for {{selectedTerm.description}}</h1>
</table>
</div>
{% else %}
<p>No upcoming events for this term</p>
<p>There are no events for this program</p>
{% endif %}
{% endmacro %}

Expand Down

0 comments on commit d0c48fe

Please sign in to comment.