From: Damien Lespiau Date: Sun, 31 Aug 2014 23:06:41 +0000 (+0100) Subject: list: Replace the 16-arrow* icons by glyphicons X-Git-Tag: v1.1.0~192 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10779e2849c1de8359b3f75f8a3f6eb9279055be;p=thirdparty%2Fpatchwork.git list: Replace the 16-arrow* icons by glyphicons They look more modern. Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- diff --git a/htdocs/images/16-arrow-down.png b/htdocs/images/16-arrow-down.png deleted file mode 100644 index fa0ff7b3..00000000 Binary files a/htdocs/images/16-arrow-down.png and /dev/null differ diff --git a/htdocs/images/16-arrow-up.png b/htdocs/images/16-arrow-up.png deleted file mode 100644 index 60c4eb9c..00000000 Binary files a/htdocs/images/16-arrow-up.png and /dev/null differ diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/patch-list.html index 4b3cb23a..cd691aeb 100644 --- a/patchwork/templates/patchwork/patch-list.html +++ b/patchwork/templates/patchwork/patch-list.html @@ -53,14 +53,9 @@ {% ifequal order.name "name" %} Patch {% else %} {% if not order.editable %} @@ -80,14 +75,9 @@ {% ifequal order.name "date" %} Date {% else %} {% if not order.editable %} @@ -101,14 +91,9 @@ {% ifequal order.name "submitter" %} Submitter {% else %} {% if not order.editable %} @@ -122,14 +107,9 @@ {% ifequal order.name "delegate" %} Delegate {% else %} {% if not order.editable %} @@ -143,14 +123,9 @@ {% ifequal order.name "state" %} State {% else %} {% if not order.editable %} diff --git a/patchwork/utils.py b/patchwork/utils.py index 0dfe8dce..d69cb210 100644 --- a/patchwork/utils.py +++ b/patchwork/utils.py @@ -93,6 +93,11 @@ class Order(object): else: return '-' + self.order + def updown(self): + if self.reversed: + return 'up' + return 'down' + def apply(self, qs): q = self.order_map[self.order] if self.reversed: