Private
Public Access
1
0

Merge branch 'hotfix/v3.15'

This commit is contained in:
Sander Roosendaal
2017-06-15 17:34:30 +02:00
2 changed files with 16 additions and 10 deletions

View File

@@ -349,7 +349,7 @@ def checkworkoutuser(user,workout):
# Workout
class Workout(models.Model):
workouttypes = (
workuttypes = (
('water','On-water'),
('rower','Indoor Rower'),
('skierg','Ski Erg'),

View File

@@ -71,15 +71,22 @@
</thead>
<tbody>
{% for workout in workouts %}
<tr>
<td> {{ workout.date |truncatechars:15}} </td>
<td> {{ workout.starttime }} </td>
<td>
{% if workout.user.user == user or user == team.manager %}
{% if workout.name != '' %}
<a href="/rowers/workout/{{ workout.id }}/edit">{{ workout.name }}</a> </td>
{% if workout.rankingpiece %}
<tr style="font-weight:bold">
{% else %}
<a href="/rowers/workout/{{ workout.id }}/edit">No Name</a> </td>
<tr>
{% endif %}
<td> {{ workout.date |truncatechars:15}} </td>
<td> {{ workout.starttime }} </td>
<td>
{% if workout.user.user == user or user == team.manager %}
{% if workout.rankingpiece %}
[RANKING PIECE]
{% endif %}
{% if workout.name != '' %}
<a href="/rowers/workout/{{ workout.id }}/edit">{{ workout.name }}</a> </td>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/edit">No Name</a> </td>
{% endif %}
{% else %}
{% if workout.name != '' %}
@@ -107,7 +114,6 @@
<a class="small" href="/rowers/workout/{{ workout.id }}/deleteconfirm">Delete
</td>
</tr>
{% endfor %}