From 4ea8d16253c2556c056876c86fa056efaab6c948 Mon Sep 17 00:00:00 2001 From: reverend Date: Sun, 16 Aug 2020 16:29:04 +0200 Subject: [PATCH] Fixed pagiatation --- lostplaces/lostplaces_app/static/main.css | 8 +++---- .../templates/partials/nav/pagination.html | 24 +++++++++++-------- .../lostplaces_app/templatetags/__init__.py | 0 .../lostplaces_app/templatetags/lostplaces.py | 22 +++++++++++++++++ lostplaces/lostplaces_app/views.py | 2 +- 5 files changed, 41 insertions(+), 15 deletions(-) create mode 100644 lostplaces/lostplaces_app/templatetags/__init__.py create mode 100644 lostplaces/lostplaces_app/templatetags/lostplaces.py diff --git a/lostplaces/lostplaces_app/static/main.css b/lostplaces/lostplaces_app/static/main.css index dba298e..e3c67e4 100644 --- a/lostplaces/lostplaces_app/static/main.css +++ b/lostplaces/lostplaces_app/static/main.css @@ -512,12 +512,12 @@ body { height: 60px; box-shadow: 0 0 2px #C09F80; grid-area: header; - background-color: white; } + background-color: white; + padding-left: 25px; } .LP-Header__Navigation { flex-grow: 2; } .LP-Header__Logo { height: 45px; - margin: 25px; object-fit: cover; max-height: 100%; width: 225px; @@ -550,8 +550,8 @@ body { @media (max-width: 650px) { .LP-Header { - padding-left: 40px; - width: calc(100% - 40px); + padding-left: 60px; + width: calc(100% - 60px); position: fixed; z-index: 10; } } diff --git a/lostplaces/lostplaces_app/templates/partials/nav/pagination.html b/lostplaces/lostplaces_app/templates/partials/nav/pagination.html index 5b62df2..0e4f59c 100644 --- a/lostplaces/lostplaces_app/templates/partials/nav/pagination.html +++ b/lostplaces/lostplaces_app/templates/partials/nav/pagination.html @@ -1,3 +1,5 @@ +{% load lostplaces %} + {% if is_paginated %}