summaryrefslogtreecommitdiffstats
path: root/apps/it/templates
diff options
context:
space:
mode:
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>