ensuring abs_path

This commit is contained in:
georg.sinn-schirwitz
2025-08-30 13:00:17 +02:00
parent e34e46e19d
commit f899439f6a
3 changed files with 48 additions and 1 deletions

View File

@@ -46,6 +46,11 @@
<p class="job-posted-time">{{ job['posted_time'] }}</p>
<span class="job-region region-{{ job['region'] }}">{{ job['region'] }}</span>
<span class="job-keyword keyword-{{ job['keyword']|replace(' ', '')|lower }}">{{ job['keyword'] }}</span>
{% if job.get('file_path_abs') or job.get('file_path') %}
<div class="job-cached">
<a href="{{ url_for('serve_cached', job_id=job.get('id') or job.get('job_id')) }}" target="_blank">Cached</a>
</div>
{% endif %}
</div>
{% endfor %}
</div>

View File

@@ -23,5 +23,13 @@ styles %}{% endblock %} {% block content %}
>{{ job.title }}</a
>
</p>
{% if job.file_path_abs or job.file_path %}
<p>
<strong>Cached copy:</strong>
<a href="{{ url_for('serve_cached', job_id=job.id) }}" target="_blank"
>View cached copy</a
>
</p>
{% endif %}
</div>
{% endblock %}