From 7dbf4d5b919d3f20a31e84e26486ff5afa207a53 Mon Sep 17 00:00:00 2001 From: mipel Date: Thu, 19 Aug 2021 08:44:47 +0200 Subject: [PATCH] Mobile optimization * adds table-responsive class to BaseClass * adds html meta attributes for proper small device rendering --- konova/utils/tables.py | 2 +- templates/base.html | 1 + user/templates/user/index.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/konova/utils/tables.py b/konova/utils/tables.py index 9cbcfc5f..93c8e68d 100644 --- a/konova/utils/tables.py +++ b/konova/utils/tables.py @@ -27,7 +27,7 @@ class BaseTable(tables.tables.Table): class Meta: attrs = { - "class": "table table-hover", + "class": "table table-hover table-responsive-md table-responsive-sm", } def __init__(self, request: HttpRequest = None, filter_set=None, queryset=None, *args, **kwargs): diff --git a/templates/base.html b/templates/base.html index e8b4cb25..0e43d4a0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,6 +3,7 @@ + {{ base_title }} {% bootstrap_css %} {% bootstrap_javascript jquery='full' %} diff --git a/user/templates/user/index.html b/user/templates/user/index.html index 722ab8ab..738a4370 100644 --- a/user/templates/user/index.html +++ b/user/templates/user/index.html @@ -4,7 +4,7 @@ {% block body %}
- +
{% trans 'Username' %} {{user.username}}