From 18f9559f3820bf12f4d5051bc1bb634f29aba5e5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Nov 2022 15:35:32 +0000 Subject: [PATCH 1/4] Header with images --- webapp_profile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index cfc0370d7..0a4656a52 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -445,7 +445,9 @@ def _get_profile_header(base_dir: str, http_prefix: str, nickname: str, occupation_str += \ ' ' + occupation_name + '
\n' - html_str += '

' + display_name + '

\n' + occupation_str + html_str += \ + '

' + \ + display_name + '

\n' + occupation_str html_str += \ '

@' + nickname + '@' + domain_full + '
\n' @@ -549,7 +551,7 @@ def _get_profile_header_after_search(nickname: str, default_timeline: str, if not display_name: display_name = search_nickname html_str += \ - '

' + display_name + '

\n' + \ + '

' + display_name + '

\n' + \ '

@' + search_nickname + '@' + search_domain_full + \ '
\n' if joined_date: From b34c0622fa091fd462201b0c0912072986b7ad97 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Nov 2022 16:09:07 +0000 Subject: [PATCH 2/4] Header style --- webapp_profile.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 0a4656a52..2c38f6cf0 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -446,8 +446,8 @@ def _get_profile_header(base_dir: str, http_prefix: str, nickname: str, ' ' + occupation_name + '
\n' html_str += \ - '

' + \ - display_name + '

\n' + occupation_str + '
\n' + \ + '

\n' + display_name + '

\n
\n' + occupation_str html_str += \ '

@' + nickname + '@' + domain_full + '
\n' @@ -551,7 +551,9 @@ def _get_profile_header_after_search(nickname: str, default_timeline: str, if not display_name: display_name = search_nickname html_str += \ - '

' + display_name + '

\n' + \ + '
\n' + \ + '

' + display_name + '

\n' + \ + '
\n' + \ '

@' + search_nickname + '@' + search_domain_full + \ '
\n' if joined_date: From 1ca714a918ffcf89b8d9a2553cd4fd6a79584fb9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Nov 2022 18:09:39 +0000 Subject: [PATCH 3/4] Profile page header --- webapp_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 2c38f6cf0..18026afdb 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -447,7 +447,7 @@ def _get_profile_header(base_dir: str, http_prefix: str, nickname: str, html_str += \ '

\n' + \ - '

\n' + display_name + '

\n
\n' + occupation_str + ' ' + display_name + '\n\n' + occupation_str html_str += \ '

@' + nickname + '@' + domain_full + '
\n' @@ -552,7 +552,7 @@ def _get_profile_header_after_search(nickname: str, default_timeline: str, display_name = search_nickname html_str += \ '

\n' + \ - '

' + display_name + '

\n' + \ + ' ' + display_name + '\n' + \ '
\n' + \ '

@' + search_nickname + '@' + search_domain_full + \ '
\n' From ee9cfc0677ae7b0b01294348c10975caf2763e89 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Nov 2022 19:16:07 +0000 Subject: [PATCH 4/4] Remove html from header --- webapp_profile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 18026afdb..5d24f5977 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -446,8 +446,8 @@ def _get_profile_header(base_dir: str, http_prefix: str, nickname: str, ' ' + occupation_name + '
\n' html_str += \ - '

\n' + \ - ' ' + display_name + '\n
\n' + occupation_str + '

' + remove_html(display_name) + '\n

\n' + \ + occupation_str html_str += \ '

@' + nickname + '@' + domain_full + '
\n' @@ -551,9 +551,9 @@ def _get_profile_header_after_search(nickname: str, default_timeline: str, if not display_name: display_name = search_nickname html_str += \ - '

\n' + \ - ' ' + display_name + '\n' + \ - '
\n' + \ + '

\n' + \ + ' ' + remove_html(display_name) + '\n' + \ + '

\n' + \ '

@' + search_nickname + '@' + search_domain_full + \ '
\n' if joined_date: