From ee3337ee74008b424c103d7a78fc7d4ac02f97b5 Mon Sep 17 00:00:00 2001
From: Flavio Tarsetti <Flavio.Tarsetti@idiap.ch>
Date: Wed, 20 Apr 2016 10:53:52 +0200
Subject: [PATCH] [reports] Chevron up/down in th tables and forced position
 next to th. Fixes #428

---
 .../templates/reports/partials/reportSingleTable.html        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/beat/web/reports/templates/reports/partials/reportSingleTable.html b/beat/web/reports/templates/reports/partials/reportSingleTable.html
index b1e3c168c..c1b28c3fc 100644
--- a/beat/web/reports/templates/reports/partials/reportSingleTable.html
+++ b/beat/web/reports/templates/reports/partials/reportSingleTable.html
@@ -37,9 +37,12 @@
       <thead>
         <tr>
           <th ng-repeat="(key, value) in tables_details[dattrs.tableid]" ng-if="value.selected" class="tableitemspace" sortth="{$ value.name $}" sorttblid="{$ dattrs.tableid $}" sortdata>
+          <span style="white-space:nowrap">
           <span ng-if="(sorted_tables | contains:dattrs.tableid)" class="glyphicon sort-icon" ng-show="sorted_experiments_keys_tables_sortkey[dattrs.tableid]==value.name" ng-class="{'glyphicon-chevron-up':sorted_experiments_keys_reverse[dattrs.tableid],'glyphicon-chevron-down':!(sorted_experiments_keys_reverse[dattrs.tableid])}"></span>
           <span ng-if="!(sorted_tables | contains:dattrs.tableid) && sorted_experiments_keys_reverse[dattrs.tableid]!=undefined" class="glyphicon sort-icon" ng-show="sorted_experiments_keys_tables_sortkey[dattrs.tableid]==value.name" ng-class="{'glyphicon-chevron-up':sorted_experiments_keys_reverse[dattrs.tableid],'glyphicon-chevron-down':!(sorted_experiments_keys_reverse[dattrs.tableid])}"></span>
-            {$ value.name $}
+          <small style="white-space:nowrap"><span ng-if="!(sorted_tables | contains:dattrs.tableid) || sorted_experiments_keys_reverse[dattrs.tableid]==undefined || sorted_experiments_keys_tables_sortkey[dattrs.tableid]!=value.name" class="glyphicon glyphicon-sort text-muted sort-icon" ng-show="sorted_experiments_keys_tables_sortkey[dattrs.tableid]!=value.name"></span></small>
+          {$ value.name $}
+          </span>
           </th>
         </tr>
       </thead>
-- 
GitLab