diff options
| author | Bobby <[email protected]> | 2023-06-11 17:35:14 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-06-11 17:35:14 -0400 |
| commit | bab48ed39da9a6312f035873ae5d2528ebcf0ab4 (patch) | |
| tree | d2446d90f94cc521e3a9e00f94359f26c519f9de | |
| parent | 9bd7bae4fabec85504d1c0595c0707261be70010 (diff) | |
| download | thatcomputerscientist-bab48ed39da9a6312f035873ae5d2528ebcf0ab4.tar.xz thatcomputerscientist-bab48ed39da9a6312f035873ae5d2528ebcf0ab4.zip | |
Fix header compat on phones; Fix online user number
| -rw-r--r-- | middleware/uuidmiddleware.py | 6 | ||||
| -rw-r--r-- | static/css/phone_compatibility.css | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/middleware/uuidmiddleware.py b/middleware/uuidmiddleware.py index 212e67b2..847ef4ab 100644 --- a/middleware/uuidmiddleware.py +++ b/middleware/uuidmiddleware.py @@ -52,8 +52,12 @@ def userTrackingContextProcessor(request): if user_data['is_staff'] == True: admin_users.append(user_data) + an = len(anonymous_users) + if user_uuid is not None: + an = an - 1 + return { - 'anonymous_users': len(anonymous_users), + 'anonymous_users': an, 'logged_in_users': len(logged_in_users), 'admin_users': len(admin_users), } diff --git a/static/css/phone_compatibility.css b/static/css/phone_compatibility.css index 3bf27e48..231acb0d 100644 --- a/static/css/phone_compatibility.css +++ b/static/css/phone_compatibility.css @@ -114,6 +114,7 @@ I am not sure yet. #header { height: 50vw !important; margin-bottom: 15vw !important; + opacity: 1 !important; } #welcome { |
