Skip to content

Commit

Permalink
refactor: Add conditional rendering for skills section in job_detail_…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
QA2A committed Sep 4, 2024
1 parent d27f2a7 commit 51ab1cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/templates/partials/job_detail_include.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h3>Job Description</h3>
<p>{{ job.description_markdown|linebreaks }}</p>
</div>

<!-- Skills Section -->
{% if job.skills.all %}
<div style="width: 250px; background-color: #f9f9f9; padding: 15px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);" id="skills-section">
<h4 style="margin-top: 0;">Skills:</h4>
<div style="display: flex; flex-direction: column; gap: 10px;" id="skills-list">
Expand All @@ -126,6 +126,7 @@ <h4 style="margin-top: 0;">Skills:</h4>
{% endfor %}
</div>
</div>
{% endif %}

</div>

Expand Down

0 comments on commit 51ab1cd

Please sign in to comment.