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
This commit is contained in:
parent
37b5b7a5e6
commit
3e6d8e9101
2 changed files with 4 additions and 21 deletions
|
@ -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
|
||||
|
|
4
changelogs/unreleased/sh-remove-tags-from-explore.yml
Normal file
4
changelogs/unreleased/sh-remove-tags-from-explore.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Remove Tags filter from Projects Explore dropdown
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in a new issue