Skip to content
Snippets Groups Projects
Commit d897abb2 authored by Administrator's avatar Administrator
Browse files

Render state of todos on index page, since there are multiple 'open' states

parent bd826e8b
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment