aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-12-10 14:20:23 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2020-12-10 14:20:23 +0100
commit90ed5dc34c5d7ea5ba6914f4ea82ab47b2c9cdb0 (patch)
tree02bc22c54278d4e8d71fc87127e2954cb72ffc0a /server/templates
parentlazyload images (diff)
downloadscout-subs-90ed5dc34c5d7ea5ba6914f4ea82ab47b2c9cdb0.tar.gz
scout-subs-90ed5dc34c5d7ea5ba6914f4ea82ab47b2c9cdb0.zip
all admin page use lazyload for images
Diffstat (limited to '')
-rw-r--r--server/templates/server/user_list.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html
index a197001..31a7029 100644
--- a/server/templates/server/user_list.html
+++ b/server/templates/server/user_list.html
@@ -266,7 +266,7 @@
<div class="col s12">
<div class="card">
<div class="card-image">
- {% if user.4 %}<img src="data:;base64,{{ user.4 }}">{% endif %}
+ {% if user.4 %}<img class="lazyload" data-src="{{ user.4 }}">{% endif %}
</div>
</div>
</div>
@@ -275,7 +275,7 @@
<div class="col s12">
<div class="card">
<div class="card-image">
- {% if user.5 %}<img src="data:;base64,{{ user.5 }}">{% endif %}
+ {% if user.5 %}<img class="lazyload" data-src="{{ user.5 }}">{% endif %}
</div>
</div>
</div>
@@ -308,6 +308,7 @@
$(document).ready(function(){
$('.modal').modal();
$('.collapsible').collapsible();
+ lazyload();
});
function send(id) {