From 97e6c73c3faef865a053ed5adddc980be59faafd Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Mon, 9 Feb 2026 09:27:27 +0100 Subject: [PATCH] fix(ux): Move audit buttons to separate row on company profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Audit links (GBP, SEO, Social, IT) now appear on their own line below contact info and social media buttons for better visual separation. Also added 'Mój pulpit' back-link for logged-in users. Co-Authored-By: Claude Opus 4.6 --- templates/company_detail.html | 77 ++++++++++++++--------------------- 1 file changed, 30 insertions(+), 47 deletions(-) diff --git a/templates/company_detail.html b/templates/company_detail.html index 6250857..5de9289 100755 --- a/templates/company_detail.html +++ b/templates/company_detail.html @@ -815,55 +815,38 @@ {% endif %} - {# GBP Audit link - visible to admins (all profiles) or regular users (own company only) #} - {% if current_user.is_authenticated %} - {% if current_user.can_edit_company(company.id) %} - - - - - Audyt GBP - - {% endif %} - {% endif %} - - {# SEO Audit link - visible to admins (all profiles) or regular users (own company only) #} - {% if current_user.is_authenticated %} - {% if current_user.can_edit_company(company.id) %} - - - - - Audyt SEO - - {% endif %} - {% endif %} - - {# Social Media Audit link - visible to admins (all profiles) or regular users (own company only) #} - {% if current_user.is_authenticated %} - {% if current_user.can_edit_company(company.id) %} - - {% endif %} - {% endif %} - - {# IT Infrastructure Audit link - visible to admins (all profiles) or regular users (own company only) #} - {% if current_user.is_authenticated %} - {% if current_user.can_edit_company(company.id) %} - - - - - Audyt IT - - {% endif %} - {% endif %} +{# Audit links - separate row, visible only to authorized users #} +{% if current_user.is_authenticated and current_user.can_edit_company(company.id) %} + +{% endif %} + {% set about_description = company.description_full or (ai_insights.business_summary if ai_insights else none) or (website_analysis.content_summary if website_analysis else none) %} {% if about_description %}