diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-26 16:21:05 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-03-26 16:22:09 +0300 |
commit | 3e6d8e9101c8842325ef3680fce7c36c95f48005 (patch) | |
tree | 088f8c2d0d1a197ee110c28c2ce2c950a9b37c15 /app/views | |
parent | 37b5b7a5e6907c364800f6f58d37b6c0412255da (diff) |
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
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/explore/projects/_filter.html.haml | 21 |
1 files changed, 0 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 |