Private
Public Access
1
0

time in zone rowed - workouts list

This commit is contained in:
Sander Roosendaal
2017-09-21 21:31:17 +02:00
parent e54d914b14
commit c9628b2e1d

View File

@@ -1,9 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load rowerfilters %} {% load rowerfilters %}
{% load tz %}
{% get_current_timezone as TIME_ZONE %}
{% load l10n %}
{% block title %}Workouts{% endblock %} {% block title %}Workouts{% endblock %}
{% block content %} {% block content %}
@@ -53,7 +51,8 @@
<table width="100%" class="listtable shortpadded"> <table width="100%" class="listtable shortpadded">
<thead> <thead>
<tr> <tr>
<th style="width:120px"> Date, Time</th> <th style="width:80"> Date</th>
<th> Time</th>
<th> Name</th> <th> Name</th>
<th> Type</th> <th> Type</th>
<th> Distance </th> <th> Distance </th>
@@ -77,10 +76,9 @@
{% else %} {% else %}
<tr> <tr>
{% endif %} {% endif %}
{% localtime on %} <td> {{ workout.date|date:"Y-m-d" }} </td>
<td> {{ workout.startdatetime|localtime|date:"Y-m-d, H:i" }} </td> <td> {{ workout.starttime|date:"H:i" }} </td>
{% endlocaltime %} <td>
<td>
{% if workout.user.user == user or user == team.manager %} {% if workout.user.user == user or user == team.manager %}
{% if workout.rankingpiece %} {% if workout.rankingpiece %}
[RANKING PIECE] [RANKING PIECE]