From b51e56ee25ea57a99e4547778704c4dbd8513331 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 10 Sep 2015 15:00:48 +0200 Subject: [PATCH] remove ordering arrows because ugly and useless --- app/views/datagrid/_head.html.haml | 1 - app/views/datagrid/_order_for.html.haml | 9 --------- 2 files changed, 10 deletions(-) delete mode 100644 app/views/datagrid/_order_for.html.haml diff --git a/app/views/datagrid/_head.html.haml b/app/views/datagrid/_head.html.haml index 072ea6a..8cfe7c6 100644 --- a/app/views/datagrid/_head.html.haml +++ b/app/views/datagrid/_head.html.haml @@ -2,4 +2,3 @@ - grid.html_columns(*options[:columns]).each do |column| %th{:class => "#{datagrid_column_classes(grid, column)}"} = column.header - = datagrid_order_for(grid, column, options) if column.supports_order? && options[:order] diff --git a/app/views/datagrid/_order_for.html.haml b/app/views/datagrid/_order_for.html.haml deleted file mode 100644 index 58bc7f4..0000000 --- a/app/views/datagrid/_order_for.html.haml +++ /dev/null @@ -1,9 +0,0 @@ -.order - = link_to( | - I18n.t("datagrid.table.order.asc").html_safe, | - url_for(grid.param_name => grid.as_query.merge(:order => column.name, :descending => false)), | - :class => "asc") - = link_to( | - I18n.t("datagrid.table.order.desc").html_safe, | - url_for(grid.param_name => grid.as_query.merge(:order => column.name, :descending => true )), | - :class => "desc")