From 51ab1cd8e3fabaee83a46925a4c49e0db92999ce Mon Sep 17 00:00:00 2001 From: QA2A <150867722+QA2A@users.noreply.github.com> Date: Wed, 4 Sep 2024 19:19:45 -0400 Subject: [PATCH] refactor: Add conditional rendering for skills section in job_detail_include.html The job_detail_include.html template has been updated to add conditional rendering for the skills section. This change ensures that the skills section is only displayed if the job has associated skills. It improves the user experience by showing relevant information and avoiding an empty section when there are no skills listed for a job. --- website/templates/partials/job_detail_include.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/templates/partials/job_detail_include.html b/website/templates/partials/job_detail_include.html index 5a60f0e..4e39761 100644 --- a/website/templates/partials/job_detail_include.html +++ b/website/templates/partials/job_detail_include.html @@ -113,7 +113,7 @@

Job Description

{{ job.description_markdown|linebreaks }}

- + {% if job.skills.all %}

Skills:

@@ -126,6 +126,7 @@

Skills:

{% endfor %}
+ {% endif %}