only show scrape button to logged in users

This commit is contained in:
georg.sinn-schirwitz
2025-08-30 13:30:29 +02:00
parent a66e9a15e7
commit 7a3d665538

View File

@@ -34,10 +34,12 @@
<button type="submit">Filter</button>
<button type="button" id="reset-filters">Reset</button>
</form>
{% if session.get('username') %}
<form id="scrape-form" method="GET" action="/scrape">
<button type="submit">Scrape Jobs</button>
<span id="scrape-info"></span>
</form>
{% endif %}
</div>
<div id="jobs">
{% for job in jobs %}
@@ -46,11 +48,6 @@
<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>