Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
eec056e0
Commit
eec056e0
authored
2 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Change template base variable name
parent
f348d1ed
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/corpora/files/__init__.py
+1
-1
1 addition, 1 deletion
app/corpora/files/__init__.py
app/corpora/files/routes.py
+3
-3
3 additions, 3 deletions
app/corpora/files/routes.py
with
4 additions
and
4 deletions
app/corpora/files/__init__.py
+
1
−
1
View file @
eec056e0
from
flask
import
Blueprint
from
flask
import
Blueprint
TEMPLATE_FOLDER
=
'
corpora/files
'
template_base_dir
=
'
corpora/files
'
bp
=
Blueprint
(
'
files
'
,
__name__
)
bp
=
Blueprint
(
'
files
'
,
__name__
)
...
...
This diff is collapsed.
Click to expand it.
app/corpora/files/routes.py
+
3
−
3
View file @
eec056e0
...
@@ -11,7 +11,7 @@ import os
...
@@ -11,7 +11,7 @@ import os
from
app
import
db
from
app
import
db
from
app.models
import
Corpus
,
CorpusFile
,
CorpusStatus
from
app.models
import
Corpus
,
CorpusFile
,
CorpusStatus
from
..decorators
import
corpus_follower_permission_required
from
..decorators
import
corpus_follower_permission_required
from
.
import
bp
,
TEMPLATE_FOLDER
from
.
import
bp
,
template_base_dir
from
.forms
import
CreateCorpusFileForm
,
UpdateCorpusFileForm
from
.forms
import
CreateCorpusFileForm
,
UpdateCorpusFileForm
...
@@ -58,7 +58,7 @@ def create_corpus_file(corpus_id):
...
@@ -58,7 +58,7 @@ def create_corpus_file(corpus_id):
flash
(
f
'
Corpus File
"
{
corpus_file
.
filename
}
"
added
'
,
category
=
'
corpus
'
)
flash
(
f
'
Corpus File
"
{
corpus_file
.
filename
}
"
added
'
,
category
=
'
corpus
'
)
return
''
,
201
,
{
'
Location
'
:
corpus
.
url
}
return
''
,
201
,
{
'
Location
'
:
corpus
.
url
}
return
render_template
(
return
render_template
(
f
'
{
TEMPLATE_FOLDER
}
/create_corpus_file.html.j2
'
,
f
'
{
template_base_dir
}
/create_corpus_file.html.j2
'
,
corpus
=
corpus
,
corpus
=
corpus
,
form
=
form
,
form
=
form
,
title
=
'
Add corpus file
'
title
=
'
Add corpus file
'
...
@@ -79,7 +79,7 @@ def corpus_file(corpus_id, corpus_file_id):
...
@@ -79,7 +79,7 @@ def corpus_file(corpus_id, corpus_file_id):
flash
(
f
'
Corpus file
"
{
corpus_file
.
filename
}
"
updated
'
,
category
=
'
corpus
'
)
flash
(
f
'
Corpus file
"
{
corpus_file
.
filename
}
"
updated
'
,
category
=
'
corpus
'
)
return
redirect
(
corpus_file
.
corpus
.
url
)
return
redirect
(
corpus_file
.
corpus
.
url
)
return
render_template
(
return
render_template
(
f
'
{
TEMPLATE_FOLDER
}
/corpus_file.html.j2
'
,
f
'
{
template_base_dir
}
/corpus_file.html.j2
'
,
corpus
=
corpus_file
.
corpus
,
corpus
=
corpus_file
.
corpus
,
corpus_file
=
corpus_file
,
corpus_file
=
corpus_file
,
form
=
form
,
form
=
form
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment