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
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment