Skip to content

Commit

Permalink
Enable HTML column title when not sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
aginev committed Apr 13, 2018
1 parent 84779af commit c4f93b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/grid.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@if ($col->isSortable())
<a href="{{ Datagrid::getCurrentRouteLink($grid->getSortParams($col->getKey())) }}">{!! $col->getTitle() !!}<i class="fa @if (\Request::input('f.order_by', '') == $col->getKey() && \Request::input('f.order_dir', 'ASC') == 'ASC') fa-sort-asc @elseif (\Request::input('f.order_by', '') == $col->getKey() && \Request::input('f.order_dir', 'ASC') == 'DESC') fa-sort-desc @else fa-sort @endif"></i></a>
@else
{{ $col->getTitle() }}
{!! $col->getTitle() !!}
@endif
</th>
@else
Expand Down

0 comments on commit c4f93b0

Please sign in to comment.