From 10779e2849c1de8359b3f75f8a3f6eb9279055be Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 1 Sep 2014 00:06:41 +0100 Subject: [PATCH] list: Replace the 16-arrow* icons by glyphicons They look more modern. Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- htdocs/images/16-arrow-down.png | Bin 354 -> 0 bytes htdocs/images/16-arrow-up.png | Bin 332 -> 0 bytes patchwork/templates/patchwork/patch-list.html | 55 +++++------------- patchwork/utils.py | 5 ++ 4 files changed, 20 insertions(+), 40 deletions(-) delete mode 100644 htdocs/images/16-arrow-down.png delete mode 100644 htdocs/images/16-arrow-up.png diff --git a/htdocs/images/16-arrow-down.png b/htdocs/images/16-arrow-down.png deleted file mode 100644 index fa0ff7b3204cde4110c41b9c907896325697401f..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 354 zc-jGC0iFJdP)m9?_pRd6f#0H6h zF(XPV2sOl zd0ki&zP)_`7?H)@J%ZqDCR`?iG;1qbGk`G6AZ&mIpYzN$J;3zU`$uuAVZvp*nyewi z*I#eI7{tcq3Y=chQ8r@u_VX1OgV;oS0c4Ymlo-RaADb9{{(TP?V`mm*0Eyjsw(mcB zfMRulvZ4UPpMT#N{{8y}#vnFGjGz}lwkycUGcYnTF)%Z6Ft9T7f-#5<5(CMhhXo6! ziEIoUETRmIK&gNKe?i0;*%;Va1c7od@P`4=e~ovZ?5n@` {% 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: -- 2.47.3