aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-11-11 15:44:10 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-11-11 15:44:10 +0200
commitb36cd5c50493ca3567c5acfef665352bd39eadd3 (patch)
treebb2562d98aac6aaa9b0046543ef0574e199659c9 /servo/templates
parent19444b3b1c3d80b860d9d749942b7d2558950bcb (diff)
downloadServo-b36cd5c50493ca3567c5acfef665352bd39eadd3.tar.gz
Servo-b36cd5c50493ca3567c5acfef665352bd39eadd3.tar.bz2
Servo-b36cd5c50493ca3567c5acfef665352bd39eadd3.zip
Cleanup
Diffstat (limited to 'servo/templates')
-rw-r--r--servo/templates/diagnostics/select_test.html2
-rwxr-xr-xservo/templates/products/view.html10
2 files changed, 8 insertions, 4 deletions
diff --git a/servo/templates/diagnostics/select_test.html b/servo/templates/diagnostics/select_test.html
index 95618f8..c296f10 100644
--- a/servo/templates/diagnostics/select_test.html
+++ b/servo/templates/diagnostics/select_test.html
@@ -3,7 +3,7 @@
{% block header %}{% trans "Choose test to run" %}{% endblock header %}
{% block body %}
{% if error %}
- <h2>{{ error }}</h2>
+ <h3 class="empty muted">{{ error }}</h3>
{% endif %}
<ul class="nav nav-pills nav-stacked">
{% for i in tests %}
diff --git a/servo/templates/products/view.html b/servo/templates/products/view.html
index 7f5f355..f719ed5 100755
--- a/servo/templates/products/view.html
+++ b/servo/templates/products/view.html
@@ -158,10 +158,11 @@
<th>{% trans "Received" %}</th>
</tr>
</thead>
+ <tbody>
{% for i in product.purchaseorderitem_set.all reversed %}
<tr>
{% with i.purchase_order as order %}
- <td><a href="{{ order.get_absolute_url }}">{{ order.pk }}</a></td>
+ <td><a href="{{ order.get_absolute_url }}">{{ order.pk|safe }}</a></td>
<td>{{ i.created_at|date:"SHORT_DATE_FORMAT" }}</td>
<td>{{ i.price|currency }}</td>
<td>{{ i.received_at|date:"SHORT_DATE_FORMAT" }}</td>
@@ -170,6 +171,7 @@
{% empty %}
<tr><td colspan="4" class="empty muted">{% trans "No Purchase Orders" %}</td></tr>
{% endfor %}
+ </tbody>
</table>
</div>
<div class="tab-pane" id="tab4">
@@ -182,9 +184,10 @@
<th>{% trans "Price" %}</th>
</tr>
</thead>
+ <tbody>
{% for i in product.invoiceitem_set.all reversed %}
<tr>
- <td><a href="{{ i.invoice.get_absolute_url }}">{{ i.invoice.pk }}</a></td>
+ <td><a href="{{ i.invoice.get_absolute_url }}">{{ i.invoice.pk|safe }}</a></td>
{% with i.invoice.order as order %}
<td><a href="{{ order.get_absolute_url }}">{{ order.code }}</a></td>
{% endwith %}
@@ -194,6 +197,7 @@
{% empty %}
<tr><td colspan="4" class="empty muted">{% trans "No invoices" %}</td></tr>
{% endfor %}
+ </tbody>
</table>
</div>
</div>
@@ -201,5 +205,5 @@
{% endblock third_column %}
{% block breadcrumb %}
-<li class="active"><span class="divider">/</span>{{ product.title }}</li>
+ <li class="active"><span class="divider">/</span>{{ product.title }}</li>
{% endblock breadcrumb %}