mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Change how the job id is obtained.
This commit is contained in:
parent
4dc331b2fe
commit
5952db0b4a
@ -31,7 +31,7 @@ def corpus(corpus_id):
|
|||||||
files[file]['path'] = os.path.join(file)
|
files[file]['path'] = os.path.join(file)
|
||||||
|
|
||||||
return render_template('main/corpora/corpus.html.j2',
|
return render_template('main/corpora/corpus.html.j2',
|
||||||
corpus_id=corpus.id,
|
corpus=corpus,
|
||||||
files=files,
|
files=files,
|
||||||
title='Corpus')
|
title='Corpus')
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ def job(job_id):
|
|||||||
|
|
||||||
return render_template('main/jobs/job.html.j2',
|
return render_template('main/jobs/job.html.j2',
|
||||||
files=files,
|
files=files,
|
||||||
job_id=job.id,
|
job=job,
|
||||||
title='Job')
|
title='Job')
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<script>
|
<script>
|
||||||
var CORPUS_ID = {{ corpus_id }}
|
var CORPUS_ID = {{ corpus.id }}
|
||||||
|
|
||||||
class InformationUpdater {
|
class InformationUpdater {
|
||||||
constructor(corpusId) {
|
constructor(corpusId) {
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<span class="card-title">Files</span>
|
<span class="card-title">Files</span>
|
||||||
<p>
|
<p>
|
||||||
{% for file in files %}
|
{% for file in files %}
|
||||||
<a href="{{ url_for('main.corpus_download', corpus_id=corpus_id, file=files[file]['path']) }}" class="waves-effect waves-light btn-small">
|
<a href="{{ url_for('main.corpus_download', corpus_id=corpus.id, file=files[file]['path']) }}" class="waves-effect waves-light btn-small">
|
||||||
<i class="material-icons left">file_download</i>{{ file }}
|
<i class="material-icons left">file_download</i>{{ file }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<script>
|
<script>
|
||||||
var url = window.location.pathname;
|
var JOB_ID = {{ job.id }}
|
||||||
var JOB_ID = url.substring(url.lastIndexOf('/') + 1);
|
|
||||||
|
|
||||||
class InformationUpdater {
|
class InformationUpdater {
|
||||||
constructor(jobId) {
|
constructor(jobId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user