mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 09:00:40 +00:00
Change how the job id is obtained.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
{% block page_content %}
|
||||
<script>
|
||||
var CORPUS_ID = {{ corpus_id }}
|
||||
var CORPUS_ID = {{ corpus.id }}
|
||||
|
||||
class InformationUpdater {
|
||||
constructor(corpusId) {
|
||||
@ -79,7 +79,7 @@
|
||||
<span class="card-title">Files</span>
|
||||
<p>
|
||||
{% 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 }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
{% block page_content %}
|
||||
<script>
|
||||
var url = window.location.pathname;
|
||||
var JOB_ID = url.substring(url.lastIndexOf('/') + 1);
|
||||
var JOB_ID = {{ job.id }}
|
||||
|
||||
class InformationUpdater {
|
||||
constructor(jobId) {
|
||||
|
Reference in New Issue
Block a user