Private
Public Access
1
0

extra icon

This commit is contained in:
Sander Roosendaal
2022-01-01 09:52:53 +01:00
parent 5dd00dcc39
commit 97d57d0961
3 changed files with 22 additions and 4 deletions

View File

@@ -137,7 +137,7 @@
{% endif %}
</div>
<div class="workoutcontainer">
<div>
<div class="icondiv">
{% with workout.workouttype|icon|safe as templateName %}
{% include templateName %}
{% endwith %}
@@ -160,6 +160,16 @@
&nbsp;
{% endif %}
</div>
<div class="workoutelement">
{% if workout|may_edit:request %}
<a class="small"
href="/rowers/workout/{{ workout.id|encode }}/delete/"
title="Delete">
<i class="fas fa-trash-alt fa-fw"></i></a>
{% else %}
&nbsp;
{% endif %}
</div>
</div>
</li>

View File

@@ -1981,7 +1981,7 @@ def workouts_view(request,message='',successmessage='',
else:
searchform = SearchForm()
paginator = Paginator(workouts,10) # show 25 workouts per page
paginator = Paginator(workouts,15) # show 25 workouts per page
page = request.GET.get('page',1)
try:

View File

@@ -328,20 +328,28 @@ th.rotate > div > span {
border-width: 1px 0 0 0;
border-color: #333 #333 #333 #333;
border-style: solid;
padding: 2px;
padding: 0px;
margin: 0px;
}
.workoutcontainer {
display: grid;
grid-template-columns: 50px repeat(auto-fit, minmax(calc((100% - 100px)/4), 1fr));
grid-template-columns: 50px repeat(auto-fit, minmax(calc((100% - 100px)/5), 1fr));
/* grid-template-columns: 50px repeat(auto-fit, minmax(100px, 1fr)) 50px; ????*/
padding: 5px;
margin: 0px;
}
.workoutelement {
margin-left: auto;
margin-right: auto;
padding: 0px;
margin: 0px;
}
.icondiv {
padding: 0px;
margin: 0px;
}
.divlines h3 {