diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-12-10 14:20:23 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-12-10 14:20:23 +0100 |
commit | 90ed5dc34c5d7ea5ba6914f4ea82ab47b2c9cdb0 (patch) | |
tree | 02bc22c54278d4e8d71fc87127e2954cb72ffc0a /server/templates | |
parent | lazyload images (diff) | |
download | scout-subs-90ed5dc34c5d7ea5ba6914f4ea82ab47b2c9cdb0.tar.gz scout-subs-90ed5dc34c5d7ea5ba6914f4ea82ab47b2c9cdb0.zip |
all admin page use lazyload for images
Diffstat (limited to 'server/templates')
-rw-r--r-- | server/templates/server/user_list.html | 5 |
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) { |