Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
d897abb2
Commit
d897abb2
authored
Mar 04, 2017
by
Administrator
Browse files
Render state of todos on index page, since there are multiple 'open' states
parent
bd826e8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
models/database.py
View file @
d897abb2
...
...
@@ -535,13 +535,6 @@ class Todo(db.Model):
]
return
" "
.
join
(
parts
)
def
render_html_short
(
self
):
parts
=
[
"<strong>{}:</strong>"
.
format
(
self
.
who
),
self
.
description
]
return
" "
.
join
(
parts
)
def
render_latex
(
self
,
current_protocol
=
None
):
return
r
"\textbf{{{}}}: {}: {} -- {}"
.
format
(
"Neuer Todo"
if
self
.
is_new
(
current_protocol
)
else
"Todo"
,
...
...
templates/index.html
View file @
d897abb2
...
...
@@ -26,7 +26,7 @@
<ul>
{% if todos|length > 0 %}
{% for todo in todos %}
<li>
{{todo.render_html
_short
()|safe}}
</li>
<li>
{{todo.render_html()|safe}}
</li>
{% endfor %}
{% else %}
<li>
Keine Todos
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment