extra icon
This commit is contained in:
@@ -137,7 +137,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="workoutcontainer">
|
<div class="workoutcontainer">
|
||||||
<div>
|
<div class="icondiv">
|
||||||
{% with workout.workouttype|icon|safe as templateName %}
|
{% with workout.workouttype|icon|safe as templateName %}
|
||||||
{% include templateName %}
|
{% include templateName %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
@@ -160,6 +160,16 @@
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</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 %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
@@ -1981,7 +1981,7 @@ def workouts_view(request,message='',successmessage='',
|
|||||||
else:
|
else:
|
||||||
searchform = SearchForm()
|
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)
|
page = request.GET.get('page',1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -328,20 +328,28 @@ th.rotate > div > span {
|
|||||||
border-width: 1px 0 0 0;
|
border-width: 1px 0 0 0;
|
||||||
border-color: #333 #333 #333 #333;
|
border-color: #333 #333 #333 #333;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
padding: 2px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.workoutcontainer {
|
.workoutcontainer {
|
||||||
display: grid;
|
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; ????*/
|
/* grid-template-columns: 50px repeat(auto-fit, minmax(100px, 1fr)) 50px; ????*/
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.workoutelement {
|
.workoutelement {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icondiv {
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divlines h3 {
|
.divlines h3 {
|
||||||
|
|||||||
Reference in New Issue
Block a user