From b31f5e32c2ca628352bfa762c64a11e50e85d0e5 Mon Sep 17 00:00:00 2001
From: Pierre GIRAUD <pierre.giraud@dalibo.com>
Date: Thu, 23 Nov 2017 16:41:27 +0100
Subject: [PATCH 2/2] Tell user which columns are sortable

---
 pgcommitfest/commitfest/templates/commitfest.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pgcommitfest/commitfest/templates/commitfest.html b/pgcommitfest/commitfest/templates/commitfest.html
index a115ae8..864fddf 100644
--- a/pgcommitfest/commitfest/templates/commitfest.html
+++ b/pgcommitfest/commitfest/templates/commitfest.html
@@ -60,13 +60,13 @@
 <table class="table table-striped table-bordered table-hover table-condensed">
  <thead>
   <tr>
-   <th>{%if p.is_open%}<a href="#" style="color:#333333;" onclick="return sortpatches(0);">Patch</a>{%if sortkey = 0%}<div style="float:right;"><i class="glyphicon glyphicon-arrow-down"></i></div>{%endif%}{%endif%}</th>
+   <th>{%if p.is_open%}<a href="#" style="color:#333333;" onclick="return sortpatches(0);">Patch<div style="float:right;"><i class="glyphicon glyphicon-arrow-down {%if sortkey != 0%}text-muted{%endif%}"></i></a></div>{%endif%}</th>
    <th>Status</th>
    <th>Author</th>
    <th>Reviewers</th>
    <th>Committer</th>
-   <th>{%if p.is_open%}<a href="#" style="color:#333333;" onclick="return sortpatches(1);">Latest activity</a>{%if sortkey = 1%}<div style="float:right;"><i class="glyphicon glyphicon-arrow-down"></i></div>{%endif%}{%else%}Latest activity{%endif%}</th>
-   <th>{%if p.is_open%}<a href="#" style="color:#333333;" onclick="return sortpatches(2);">Latest mail</a>{%if sortkey = 2%}<div style="float:right;"><i class="glyphicon glyphicon-arrow-down"></i></div>{%endif%}{%else%}Latest mail{%endif%}</th>
+   <th>{%if p.is_open%}<a href="#" style="color:#333333;" onclick="return sortpatches(1);">Latest activity<div style="float:right;"><i class="glyphicon glyphicon-arrow-down {%if sortkey != 1%}text-muted{%endif%}"></i></a></div>{%else%}Latest activity{%endif%}</th>
+   <th>{%if p.is_open%}<a href="#" style="color:#333333;" onclick="return sortpatches(2);">Latest mail<div style="float:right;"><i class="glyphicon glyphicon-arrow-down {%if sortkey != 2%}text-muted{%endif%}"></i></a></div>{%else%}Latest mail{%endif%}</th>
 {%if user.is_staff%}
    <th>Select</th>
 {%endif%}
-- 
2.14.2

