BigW Consortium Gitlab

_sort_dropdown.html.haml 779 Bytes
Newer Older
1
.dropdown.inline.prepend-left-10
2
  %a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
3 4 5 6 7 8 9 10
    %span.light sort:
    - if @sort.present?
      = @sort
    - else
      Newest
    %b.caret
  %ul.dropdown-menu
    %li
11
      = link_to page_filter_path(sort: 'newest') do
12
        = sort_title_recently_created
13
      = link_to page_filter_path(sort: 'oldest') do
14
        = sort_title_oldest_created
15
      = link_to page_filter_path(sort: 'recently_updated') do
16
        = sort_title_recently_updated
17
      = link_to page_filter_path(sort: 'last_updated') do
18
        = sort_title_oldest_updated
19
      = link_to page_filter_path(sort: 'milestone_due_soon') do
20
        Milestone due soon
21
      = link_to page_filter_path(sort: 'milestone_due_later') do
22
        Milestone due later