From cd27bead2e16586f9dcb1c9a467afce18f39fcb0 Mon Sep 17 00:00:00 2001 From: Ezekiel Kigbo Date: Thu, 2 May 2019 14:49:11 +0200 Subject: Cleanup css classes and styles Use class and id syntax for button attributes Use feature flag variable and shorthand if expression Use shorthand if expression Use a classname instead of tag Simplify common rules Use size variable Move flex grow and shrink to utility classes Extract redused classes Remove unecessary styles --- app/views/explore/projects/_filter.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/explore') diff --git a/app/views/explore/projects/_filter.html.haml b/app/views/explore/projects/_filter.html.haml index ebc3f6b85ce..d00a3d266d8 100644 --- a/app/views/explore/projects/_filter.html.haml +++ b/app/views/explore/projects/_filter.html.haml @@ -1,7 +1,8 @@ - has_label = local_assigns.fetch(:has_label, false) +- feature_project_list_filter_bar = Feature.enabled?(:project_list_filter_bar) - if current_user - .dropdown.js-project-filter-dropdown-wrap + .dropdown.js-project-filter-dropdown-wrap{ class: ('d-flex flex-grow-1 flex-shrink-1' if feature_project_list_filter_bar) } %button.dropdown-menu-toggle{ href: '#', "data-toggle" => "dropdown", 'data-display' => 'static' } - unless has_label = icon('globe', class: 'mt-1') -- cgit v1.2.3