diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-05 11:51:56 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-05 11:51:56 +0000 |
commit | 7a311c23494b26d5212cac98318273fc9d2c69d1 (patch) | |
tree | 12f31f4168a1e6f0f9257720efbbdc16e686828e /app/views/shared | |
parent | 62067c5b0f9bc7764a88b9bc618d21cae4f90875 (diff) | |
download | gitlab-ce-7a311c23494b26d5212cac98318273fc9d2c69d1.tar.gz |
Updated project list dropdown to use dropdown classesimprove-archived-projects
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/projects/_dropdown.html.haml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/app/views/shared/projects/_dropdown.html.haml b/app/views/shared/projects/_dropdown.html.haml index daaac092dce..e7e04621ff4 100644 --- a/app/views/shared/projects/_dropdown.html.haml +++ b/app/views/shared/projects/_dropdown.html.haml @@ -5,21 +5,18 @@ %span.light = projects_sort_options_hash[@sort] %b.caret - %ul.dropdown-menu.dropdown-menu-align-right.dropdown-with-checkmark - %li - .legend Sort by + %ul.dropdown-menu.dropdown-menu-align-right.dropdown-menu-selectable + %li.dropdown-header + Sort by - projects_sort_options_hash.each do |value, title| %li - = link_to filter_projects_path(sort: value, archived: archived) do - = icon('check') if @sort == value + = link_to filter_projects_path(sort: value, archived: archived), class: ("is-active" if @sort == value) do = title %li.divider %li - = link_to filter_projects_path(sort: @sort, archived: nil) do - = icon('check') unless params[:archived].present? + = link_to filter_projects_path(sort: @sort, archived: nil), class: ("is-active" unless params[:archived].present?) do Hide archived projects %li - = link_to filter_projects_path(sort: @sort, archived: true) do - = icon('check') if params[:archived].present? + = link_to filter_projects_path(sort: @sort, archived: true), class: ("is-active" if params[:archived].present?) do Show archived projects |