only show scrape button to logged in users
This commit is contained in:
@@ -34,10 +34,12 @@
|
|||||||
<button type="submit">Filter</button>
|
<button type="submit">Filter</button>
|
||||||
<button type="button" id="reset-filters">Reset</button>
|
<button type="button" id="reset-filters">Reset</button>
|
||||||
</form>
|
</form>
|
||||||
|
{% if session.get('username') %}
|
||||||
<form id="scrape-form" method="GET" action="/scrape">
|
<form id="scrape-form" method="GET" action="/scrape">
|
||||||
<button type="submit">Scrape Jobs</button>
|
<button type="submit">Scrape Jobs</button>
|
||||||
<span id="scrape-info"></span>
|
<span id="scrape-info"></span>
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div id="jobs">
|
<div id="jobs">
|
||||||
{% for job in jobs %}
|
{% for job in jobs %}
|
||||||
@@ -46,11 +48,6 @@
|
|||||||
<p class="job-posted-time">{{ job['posted_time'] }}</p>
|
<p class="job-posted-time">{{ job['posted_time'] }}</p>
|
||||||
<span class="job-region region-{{ job['region'] }}">{{ job['region'] }}</span>
|
<span class="job-region region-{{ job['region'] }}">{{ job['region'] }}</span>
|
||||||
<span class="job-keyword keyword-{{ job['keyword']|replace(' ', '')|lower }}">{{ job['keyword'] }}</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>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user