aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-11-04 15:08:58 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-11-04 15:08:58 +0200
commitc087462f4deec9650da7b965ef8ecfb2fece07f3 (patch)
tree536425b4865497b1dceb8f4a0c4d9c14b6ca1ec4
parentba8b6375333e1f574970824ff243f84e6086a7c2 (diff)
downloadServo-c087462f4deec9650da7b965ef8ecfb2fece07f3.tar.gz
Servo-c087462f4deec9650da7b965ef8ecfb2fece07f3.tar.bz2
Servo-c087462f4deec9650da7b965ef8ecfb2fece07f3.zip
Cleanup
-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>