aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
Diffstat (limited to 'servo')
-rw-r--r--servo/models/repair.py4
-rwxr-xr-xservo/templates/pagination.html24
2 files changed, 13 insertions, 15 deletions
diff --git a/servo/models/repair.py b/servo/models/repair.py
index cae0f17..2276945 100644
--- a/servo/models/repair.py
+++ b/servo/models/repair.py
@@ -246,9 +246,7 @@ class Repair(models.Model):
@classmethod
def create_from_gsx(cls, confirmation, order, device, user):
- """
- Creates a new Repair for order with confirmation number
- """
+ """Creates a new Repair for order with confirmation number."""
try:
repair = cls.objects.get(confirmation=confirmation)
msg = {'repair': repair.confirmation, 'order': repair.order}
diff --git a/servo/templates/pagination.html b/servo/templates/pagination.html
index 5625b7c..9c99c95 100755
--- a/servo/templates/pagination.html
+++ b/servo/templates/pagination.html
@@ -2,17 +2,17 @@
{% load servo_tags %}
<div class="pagination pagination-centered">
- <ul>
- {% if items.has_previous %}
- <li><a href="?{% paginator_page request items.previous_page_number %}"><span>&laquo;</span></a></li>
- {% else %}
- <li class="disabled"><a href="#"><span>&laquo;</span></a></li>
- {% endif %}
- <li class="active"><a href="#"><span>{% trans "Page" %} {{ items.number }}/{{ items.paginator.num_pages }}</span></a></li>
- {% if items.has_next %}
- <li><a href="?{% paginator_page request items.next_page_number %}"><span>&raquo;</span></a></li>
- {% else %}
- <li class="disabled"><a href="#"><span>&raquo;</span></a></li>
- {% endif %}
+ <ul>
+ {% if items.has_previous %}
+ <li><a href="?{% paginator_page request items.previous_page_number %}"><span>&laquo;</span></a></li>
+ {% else %}
+ <li class="disabled"><a href="#"><span>&laquo;</span></a></li>
+ {% endif %}
+ <li class="active"><a href="#"><span>{% trans "Page" %} {{ items.number }}/{{ items.paginator.num_pages }}</span></a></li>
+ {% if items.has_next %}
+ <li><a href="?{% paginator_page request items.next_page_number %}"><span>&raquo;</span></a></li>
+ {% else %}
+ <li class="disabled"><a href="#"><span>&raquo;</span></a></li>
+ {% endif %}
</ul>
</div>