From 51963fe8596638fa16bf01afad97f814bf498f63 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 29 Sep 2015 15:15:45 +0200 Subject: [PATCH] add table sort arrow --- app/assets/javascripts/app/views/generic/table.jst.eco | 5 ++++- app/assets/stylesheets/zammad.scss | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/views/generic/table.jst.eco b/app/assets/javascripts/app/views/generic/table.jst.eco index a42ecb081..a269eff20 100644 --- a/app/assets/javascripts/app/views/generic/table.jst.eco +++ b/app/assets/javascripts/app/views/generic/table.jst.eco @@ -14,7 +14,10 @@ <% end %> <% for item in @header: %> - class="<%= item.className %>"<% end %><% if item.style: %> style="<%= item.style %>"<% end %>><%- @T( item.display ) %> + class="<%= item.className %>"<% end %><% if item.style: %> style="<%= item.style %>"<% end %>> + <%- @T( item.display ) %> + <%- @Icon('arrow-down', 'table-sort-arrow') %> + <% end %> <% if @destroy: %> <%- @T('Delete') %> diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index cb021b72e..47cea3ad7 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -637,6 +637,16 @@ table { fill: hsl(240,1%,77%); } +.table .table-sort-arrow { + opacity: 1; + fill: hsl(206,7%,33%); + width: 8px; + height: 8px; + margin-left: 3px; + margin-top: -2px; + vertical-align: middle; +} + .checkbox-replacement, .radio-replacement { padding: 0;