diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-26 06:21:05 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-03-26 06:22:09 -0700 |
commit | 3e6d8e9101c8842325ef3680fce7c36c95f48005 (patch) | |
tree | 088f8c2d0d1a197ee110c28c2ce2c950a9b37c15 | |
parent | 37b5b7a5e6907c364800f6f58d37b6c0412255da (diff) | |
download | gitlab-ce-3e6d8e9101c8842325ef3680fce7c36c95f48005.tar.gz |
Remove Tags filter from Projects Explore dropdown
Problems:
1. It's huge.
2. It's loaded on page load, which makes the page take 13 seconds.
3. It has a terrible UX.
Closes #28992
-rw-r--r-- | app/views/explore/projects/_filter.html.haml | 21 | ||||
-rw-r--r-- | changelogs/unreleased/sh-remove-tags-from-explore.yml | 4 |
2 files changed, 4 insertions, 21 deletions
diff --git a/app/views/explore/projects/_filter.html.haml b/app/views/explore/projects/_filter.html.haml index 56f463572bb..f630f1effdc 100644 --- a/app/views/explore/projects/_filter.html.haml +++ b/app/views/explore/projects/_filter.html.haml @@ -17,24 +17,3 @@ = link_to filter_projects_path(visibility_level: level) do = visibility_level_icon(level) = visibility_level_label(level) - -- if @tags.present? - .dropdown - %button.dropdown-toggle{ href: '#', "data-toggle" => "dropdown" } - = icon('tags') - %span.light Tags: - - if params[:tag].present? - = params[:tag] - - else - Any - = icon('chevron-down') - %ul.dropdown-menu.dropdown-menu-align-right - %li - = link_to filter_projects_path(tag: nil) do - Any - - - @tags.each do |tag| - %li{ class: active_when(tag.name == params[:tag]) || 'light' } - = link_to filter_projects_path(tag: tag.name) do - = icon('tag') - = tag.name diff --git a/changelogs/unreleased/sh-remove-tags-from-explore.yml b/changelogs/unreleased/sh-remove-tags-from-explore.yml new file mode 100644 index 00000000000..b76ec89a006 --- /dev/null +++ b/changelogs/unreleased/sh-remove-tags-from-explore.yml @@ -0,0 +1,4 @@ +--- +title: Remove Tags filter from Projects Explore dropdown +merge_request: +author: |