fix last commit
parent
42ed35770c
commit
bd97dc7d5f
|
@ -54,8 +54,8 @@ def dm_images(v):
|
||||||
|
|
||||||
firstrange = PAGE_SIZE * (page - 1)
|
firstrange = PAGE_SIZE * (page - 1)
|
||||||
secondrange = firstrange + PAGE_SIZE + 1
|
secondrange = firstrange + PAGE_SIZE + 1
|
||||||
posts = items[firstrange:secondrange]
|
items = items[firstrange:secondrange]
|
||||||
next_exists = (len(posts) > PAGE_SIZE)
|
next_exists = (len(items) > PAGE_SIZE)
|
||||||
|
|
||||||
return render_template("admin/dm_images.html", v=v, items=items, next_exists=next_exists, page=page)
|
return render_template("admin/dm_images.html", v=v, items=items, next_exists=next_exists, page=page)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<table class="table table-striped mb-5">
|
<table class="table table-striped mb-5">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
|
||||||
<th>Image</th>
|
<th>Image</th>
|
||||||
<th>Sender</th>
|
<th>Sender</th>
|
||||||
<th>Sent To</th>
|
<th>Sent To</th>
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
|
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{loop.index}}</td>
|
|
||||||
<td>
|
<td>
|
||||||
<a href="{{item[0]}}" target="_blank">
|
<a href="{{item[0]}}" target="_blank">
|
||||||
<img alt="![]({{item[0]}})" src="{{item[0]}}" loading="lazy" class="dm_img">
|
<img alt="![]({{item[0]}})" src="{{item[0]}}" loading="lazy" class="dm_img">
|
||||||
|
|
Loading…
Reference in New Issue