Newer
Older
{% load static %}
{% include "header.html" %}
Stefano Alberto Russo
committed
{% include "navigation.html" %}
<div class="container">
<div class="dashboard">
<div class="span8 offset2">
Stefano Alberto Russo
committed
{% if data.task %}
Stefano Alberto Russo
committed
<h1><a href="/tasks">Tasks</a> <span style="font-size:18px"> / {{ data.task.name }}</span></h1>
Stefano Alberto Russo
committed
{% else %}
Stefano Alberto Russo
committed
<h1>Tasks</h1>
Stefano Alberto Russo
committed
{% endif %}
Stefano Alberto Russo
committed
Stefano Alberto Russo
committed
<div class="row" style="padding:5px">
Stefano Alberto Russo
committed
{% if data.task %}
{% include "components/task.html" with task=data.task details=True %}
{% else %}
{% for task in data.tasks %}
{% include "components/task.html" with task=task %}
{% endfor %}
Stefano Alberto Russo
committed
{% endif %}
</div>
Stefano Alberto Russo
committed
<div class="row" style="padding:10px; padding-left:15px">
<a href="/new_task">New task...</a>
Stefano Alberto Russo
committed
</div>
Stefano Alberto Russo
committed
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</div>
</div>
</div>
{% include "footer.html" %}
<script>
function toggle_visibility(id) {
var x = document.getElementById(id);
var y = document.getElementById('show_button');
var z = document.getElementById('hide_button');
if (x.style.display === "none") {
x.style.display = "block";
y.style.display = "none"
z.style.display= "inline"
} else {
x.style.display = "none";
y.style.display= "inline"
z.style.display = "none"
}
}
</script>