mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Fix some problems after merge
This commit is contained in:
parent
66fbf4d57b
commit
52fa23ff65
@ -80,10 +80,11 @@ def corpus(corpus_id):
|
||||
title='Corpus'
|
||||
)
|
||||
else:
|
||||
print('public')
|
||||
corpus_files = [x.to_json_serializeable() for x in corpus.files]
|
||||
return render_template(
|
||||
'corpora/corpus_public.html.j2',
|
||||
corpus=corpus,
|
||||
corpus_files=corpus_files,
|
||||
title='Corpus'
|
||||
)
|
||||
|
||||
|
@ -76,7 +76,7 @@
|
||||
if (response.status === 404) {app.flash('Not Found', 'error'); reject(response);}
|
||||
{# app.flash(`You are not following "{{ corpus.title }}" anymore`, 'corpus'); #}
|
||||
resolve(response);
|
||||
window.location.href = '{{ url_for("corpora.public_corpus", corpus_id=corpus.id) }}';
|
||||
window.location.href = '{{ url_for("corpora.corpus", corpus_id=corpus.id) }}';
|
||||
},
|
||||
(response) => {
|
||||
app.flash('Something went wrong', 'error');
|
||||
@ -92,7 +92,7 @@
|
||||
if (response.status === 403) {app.flash('Forbidden', 'error'); reject(response);}
|
||||
if (response.status === 404) {app.flash('Not Found', 'error'); reject(response);}
|
||||
{# app.flash(`You follow "{{ corpus.title }}" now`, 'corpus'); #}
|
||||
window.location.href = '{{ url_for("corpora.public_corpus", corpus_id=corpus.id) }}';
|
||||
window.location.href = '{{ url_for("corpora.corpus", corpus_id=corpus.id) }}';
|
||||
resolve(response);
|
||||
},
|
||||
(response) => {
|
||||
|
Loading…
Reference in New Issue
Block a user