Commit 558b3788 authored by hypsug0's avatar hypsug0
Browse files

feat: image lazy loading

parent 18a87882
......@@ -91,7 +91,7 @@ header h1 {
.page-header {
/*background-color: #1a1a1a;*/
margin: 0px;
text-align: right;
text-align: center;
color: #fff;
height: 65px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
......@@ -107,7 +107,7 @@ header h1 {
.page-header img {
margin-top: 8px;
margin-right: 5px;
/* margin-right: 5px; */
height: 50px;
}
......
......@@ -3,28 +3,28 @@
{% block content %}
<div class="row" style="text-align:center;font-size:2rem;">
<div class="col-sm-12 col-md-6 col-lg-3">
<div class="col-xs-12 col-sm-6 col-md-3">
<div class="statBlock">
<i class="text-muted fas fa-map-marked-alt fa-2x"></i><br>
<span class="statCount">{{ placescount }}</span><br>
<span class="statDesc text-muted"> {{ placestext }}</span><br>
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-3">
<div class="col-xs-12 col-sm-6 col-md-3">
<div class="statBlock">
<i class="text-muted fas fa-calendar-check fa-2x "></i><br>
<span class="statCount">{{ sessionscount }}</span><br>
<span class="statDesc text-muted"> {{ sessionstext }}</span><br>
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-3">
<div class="col-xs-12 col-sm-6 col-md-3">
<div class="statBlock">
<i class="text-muted fas fa-eye fa-2x"></i><br>
<span class="statCount">{{ sightingscount }}</span><br>
<span class="statDesc text-muted"> {{ sightingstext }}</span><br>
</div>
</div>
<div class="col-sm-12 col-md-6 col-lg-3">
<div class="col-xs-12 col-sm-6 col-md-3">
<div class="statBlock">
<i class="text-muted fas fa-users fa-2x"></i><br>
<span class="statCount">{{ observerscount }}</span><br>
......
......@@ -2,9 +2,11 @@
<header>
<div class="page-header">
{% if user.is_authenticated %}
<div class="links">
{{ user.get_username }}
{% if user.is_authenticated %}
<a href="{% url 'accounts:myprofile_detail' %}" title="{% trans 'Mon profile' %}">{{ user.get_username }}</a>
<a
href="{% url 'auth_logout' %}"
title="{% trans 'Se déconnecter' %}"
......@@ -13,17 +15,16 @@
aria-hidden="true"
></i>
</a>
</div>
{% else %}
<div class="links">
<a href="{% url 'auth_login' %}" title="{% trans 'Se connecter' %}"
><i
class="fa fa-fw fa-sign-in-alt"
aria-hidden="true"
></i>
</a>
</div>
{% endif %}
</div>
<img src="{% static 'img/logo_site.png' %}" loading="lazy" />
<h1>{{ SITE_NAME }}</h1>
</div>
......
......@@ -3,7 +3,7 @@
<nav class="navbar navbar-default navbar-fixed-top" id="sidebar-wrapper" role="navigation">
<ul class="nav sidebar-nav">
<li class="sidebar-brand">
<a href="/"><img src="{% static 'img/dbchiro_main_logo.svg' %}" width="30"> dbChiro<sub>[web]</sub></a>
<a href="/"><img src="{% static 'img/dbchiro_main_logo.svg' %}" width="30" loading="lazy" > dbChiro<sub>[web]</sub></a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
......
{% load staticfiles %}
<header>
<div class="page-header">
<img src="{% static 'img/dbchiro_main_logo.svg' %}" width="100">
<img src="{% static 'img/dbchiro_main_logo.svg' %}" width="100" loading="lazy" >
<h1>dbChiro<sub>[web]</sub></h1>
</div>
</header>
\ No newline at end of file
</header>
......@@ -221,7 +221,7 @@
{% if object.photo_file %}
<fieldset>
<legend>Photo</legend>
<img src="{{ object.photo_file.url }}" alt="Photo du gîte" width="500"/>
<img src="{{ object.photo_file.url }}" alt="Photo du gîte" width="500" loading="lazy" />
</fieldset>
{% endif %}
{% if object.map_file %}
......@@ -383,4 +383,4 @@
</div>
</div>
<br/> {% endblock %}
\ No newline at end of file
<br/> {% endblock %}
......@@ -3,6 +3,7 @@
{% block title %}
Observations de la session {{object.name}}
{% endblock %}
{% block content %}
<style>
#sessionSightingEdit .panel-item {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment