summaryrefslogtreecommitdiffstats
path: root/apps/it/templates
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2014-02-24 19:31:23 +0200
committerFilipp Lepalaan <f@230.to>2014-02-24 19:31:23 +0200
commit615f73881baf3ae7837ee23467998875a944177f (patch)
tree655a01e7c2131a8ee6be71af790ea2f895374668 /apps/it/templates
parent993f654f7e3334b235391a8d1f779c3e715a610d (diff)
downloadpudding-615f73881baf3ae7837ee23467998875a944177f.tar.gz
pudding-615f73881baf3ae7837ee23467998875a944177f.tar.bz2
pudding-615f73881baf3ae7837ee23467998875a944177f.zip
Better
Diffstat (limited to 'apps/it/templates')
-rwxr-xr-xapps/it/templates/default.html10
-rw-r--r--apps/it/templates/edit_task.html1
-rw-r--r--apps/it/templates/view_issue.html2
3 files changed, 8 insertions, 5 deletions
diff --git a/apps/it/templates/default.html b/apps/it/templates/default.html
index c163995..d1738a4 100755
--- a/apps/it/templates/default.html
+++ b/apps/it/templates/default.html
@@ -146,12 +146,13 @@
<i class="fa fa-tasks fa-fw"></i> <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-tasks">
+ {% for i in request.user.issues.all %}
<li>
- <a href="#">
+ <a href="{{ i.get_absolute_url }}">
<div>
<p>
- <strong>Task 1</strong>
- <span class="pull-right text-muted">40% Complete</span>
+ <strong>{{ i.title }}</strong>
+ <span class="pull-right text-muted">{{ i.progress }}% Complete</span>
</p>
<div class="progress progress-striped active">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
@@ -162,6 +163,7 @@
</a>
</li>
<li class="divider"></li>
+ {% endfor %}
<li>
<a href="#">
<div>
@@ -241,7 +243,7 @@
<ul class="nav" id="side-menu">
<li class="sidebar-search">
<div class="input-group custom-search-form">
- <input type="text" class="form-control searchfield" placeholder="Search...">
+ <input type="text" class="form-control searchfield" placeholder="Search..."/>
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<i class="fa fa-search"></i>
diff --git a/apps/it/templates/edit_task.html b/apps/it/templates/edit_task.html
index 30435e4..03bf18c 100644
--- a/apps/it/templates/edit_task.html
+++ b/apps/it/templates/edit_task.html
@@ -6,6 +6,7 @@
<form action="" method="post" class="form">
{% csrf_token %}
{% bootstrap_form form %}
+ <a class="btn btn-default" href="{{ task.issue.get_absolute_url }}">{% trans "Cancel" %}</a>
<button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
</form>
{% endblock main %}
diff --git a/apps/it/templates/view_issue.html b/apps/it/templates/view_issue.html
index b60afb2..e8adb8e 100644
--- a/apps/it/templates/view_issue.html
+++ b/apps/it/templates/view_issue.html
@@ -51,7 +51,7 @@
{% endblock main %}
{% block inspector %}
-{% if 1 %}
+{% if request.user in issue.users.all %}
<a class="btn btn-sm btn-default btn-primary active" href="{% url 'metoo' issue.pk 1 %}">{% bootstrap_icon "star" %} {% trans "Me too!" %}</a>
{% else %}
<a class="btn btn-sm btn-default btn-primary" href="{% url 'metoo' issue.pk 1 %}">{% bootstrap_icon "star" %} {% trans "Me too!" %}</a>