Skip to content

Commit

Permalink
involves front end changes for #117
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaddem committed Feb 1, 2021
1 parent bd7c7f7 commit c0011ad
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion project-templates/matches/matches_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,24 @@
<table class="table table-hover">
<tr id="header">
<thead>
<th scope="row">ID</th>
<th scope="row">Match ID</th>
<th>Match DateTime (Local)</th>
</thead>
</tr>
{% for match in matches %}
<tbody>
<tr scope="">
<td scope="row"><a href="{% url 'matches:detail' pk=match.id %}">#{{ match.id }}</a></td>
<td>
{% if match.datetime != None or match.datetime != "" %}
<script>
const date = new Date("{{ match.datetime|safe }}");
document.write(date.toLocaleString());
</script>
{% else %}
TBD
{% endif %}
</td>
</tr>
</tbody>
{% endfor %}
Expand Down

0 comments on commit c0011ad

Please sign in to comment.