From 3e2b1fc92e807a8bf524ac9574a87cd73aeb42d0 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Fri, 30 Sep 2022 17:20:43 +0300 Subject: [PATCH] feat: Add a bug report link to the menu bar (#4525) This required making some horizontal room for it, mostly by showing a user photo or shorter tag when they are logged in. --- ietf/static/css/ietf.scss | 7 +++++++ ietf/templates/base.html | 31 +++++++++++++++++++----------- ietf/templates/base/menu.html | 2 +- ietf/templates/base/menu_user.html | 10 ++++++++-- 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/ietf/static/css/ietf.scss b/ietf/static/css/ietf.scss index 86b71f154..618ce267d 100644 --- a/ietf/static/css/ietf.scss +++ b/ietf/static/css/ietf.scss @@ -227,6 +227,13 @@ th { } } +// Style the navbar user photo +.nav-link .user-photo { + object-fit: cover; + height: 40px; + width: 40px; +} + // Style the righthand navigation panel #righthand-panel { max-height: 80vh; diff --git a/ietf/templates/base.html b/ietf/templates/base.html index 1ccef06c9..ed064a535 100644 --- a/ietf/templates/base.html +++ b/ietf/templates/base.html @@ -42,23 +42,32 @@ IETF Logo Datatracker - {% if server_mode and server_mode != "production" %}Dev Mode{% endif %} + {% if server_mode and server_mode != "production" %} + δ + {% endif %} - {% if not user.is_authenticated %} - - Sign - in +
+ + Report a bug + - {% endif %} -