From b5ef5b0b3220c9a2c5ffcb87b007e8f72a03f398 Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Fri, 10 Apr 2026 06:23:30 +0200 Subject: [PATCH] feat: make user names and avatars clickable links to profiles Add profile links to usernames and avatars across forum, classifieds, announcements, company recommendations, board members, and group messages. Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/announcements/detail.html | 2 +- templates/board/meetings_list.html | 4 ++-- templates/classifieds/index.html | 2 +- templates/classifieds/view.html | 14 +++++++------- templates/company_detail.html | 8 ++++---- templates/forum/index.html | 2 +- templates/forum/topic.html | 14 ++++++++------ templates/messages/group_manage.html | 4 +++- 8 files changed, 27 insertions(+), 23 deletions(-) diff --git a/templates/announcements/detail.html b/templates/announcements/detail.html index 01fd300..9f785a0 100644 --- a/templates/announcements/detail.html +++ b/templates/announcements/detail.html @@ -390,7 +390,7 @@ {% if announcement.author %} - 👤 {{ announcement.author.name }} + 👤 {{ announcement.author.name }} {% endif %} diff --git a/templates/board/meetings_list.html b/templates/board/meetings_list.html index 1bbc204..35013d2 100644 --- a/templates/board/meetings_list.html +++ b/templates/board/meetings_list.html @@ -441,7 +441,7 @@
{% for member in board_members %} - + {% else %}

Brak przypisanych członków Rady.

{% endfor %} diff --git a/templates/classifieds/index.html b/templates/classifieds/index.html index ece246f..d9c8972 100755 --- a/templates/classifieds/index.html +++ b/templates/classifieds/index.html @@ -302,7 +302,7 @@ {% if classified.company %} {{ classified.company.name }} {% else %} - {{ classified.author.name or classified.author.email.split('@')[0] }} + {{ classified.author.name or classified.author.email.split('@')[0] }} {% endif %}
diff --git a/templates/classifieds/view.html b/templates/classifieds/view.html index 73f6783..4628b0c 100755 --- a/templates/classifieds/view.html +++ b/templates/classifieds/view.html @@ -710,11 +710,11 @@ {% endif %}
- +
-
{{ classified.author.name or classified.author.email.split('@')[0] }}
+ {% if classified.company %}
{{ classified.company.name }}
{% endif %} @@ -798,12 +798,12 @@ {% for q in questions %}
- +
- {{ q.author.name or q.author.email.split('@')[0] }} + {{ q.author.name or q.author.email.split('@')[0] }} {% if q.author.company %} - {{ q.author.company.name }}{% endif %} {% if not q.answer %}Oczekuje na odpowiedz{% endif %}
@@ -821,7 +821,7 @@ {% if q.answer %}
-
Odpowiedz od {{ classified.author.name or classified.author.email.split('@')[0] }}
+
{{ q.answer }}
{% elif classified.author_id == current_user.id %} diff --git a/templates/company_detail.html b/templates/company_detail.html index a4090c3..44f20fc 100755 --- a/templates/company_detail.html +++ b/templates/company_detail.html @@ -3123,13 +3123,13 @@
- +
- {{ rec.user.first_name }} {{ rec.user.last_name }} + {{ rec.user.first_name }} {{ rec.user.last_name }}
{% if rec.user.company %} - {{ topic.author.name or topic.author.email.split('@')[0] }} + {{ topic.author.name or topic.author.email.split('@')[0] }} {% if topic.is_ai_generated %} diff --git a/templates/forum/topic.html b/templates/forum/topic.html index be75e54..e359648 100755 --- a/templates/forum/topic.html +++ b/templates/forum/topic.html @@ -205,6 +205,8 @@ cursor: pointer; position: relative; font-weight: 500; + text-decoration: none; + color: inherit; } .user-stats-trigger:hover { @@ -1061,9 +1063,9 @@ - + {% if topic.is_ai_generated %} @@ -1173,16 +1175,16 @@
- + {% if reply.is_ai_generated %} diff --git a/templates/messages/group_manage.html b/templates/messages/group_manage.html index 26c36b4..33f2015 100644 --- a/templates/messages/group_manage.html +++ b/templates/messages/group_manage.html @@ -391,13 +391,15 @@
+ {% if m.user.avatar_path %} {% else %}
{{ (m.user.name or m.user.email)[0].upper() }}
{% endif %} +
-
{{ m.user.name or m.user.email.split('@')[0] }}
+ {% if m.user.privacy_show_email != False %}
{{ m.user.email }}
{% endif %}