Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!78
UI pro nastavení testovacích účtů
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
UI pro nastavení testovacích účtů
jk/issue-194
into
devel
Overview
0
Commits
2
Changes
1
Merged
UI pro nastavení testovacích účtů
Jiří Kalvoda
requested to merge
jk/issue-194
into
devel
Jun 11, 2021
Overview
0
Commits
2
Changes
1
Closes
#194 (closed)
0
0
Merge request reports
Viewing commit
e4bb29b3
Prev
Next
Show latest version
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e4bb29b3
Jinja filtr bool -> ano/ne
· e4bb29b3
Jiří Kalvoda
authored
Jun 11, 2021
mo/web/jinja.py
+
5
−
0
View file @ e4bb29b3
Edit in single-file editor
Open in Web IDE
Show full file
@@ -87,6 +87,11 @@ def none_value(s: Any, none_value: Any) -> Any:
return
none_value
if
s
is
None
else
s
@app.template_filter
()
def
yes_no
(
a
:
bool
)
->
str
:
return
"
ano
"
if
a
else
"
ne
"
@app.template_filter
()
def
json_pretty
(
js
:
Any
)
->
str
:
return
json
.
dumps
(
js
,
sort_keys
=
True
,
indent
=
4
,
ensure_ascii
=
False
)
Loading