diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-08-01 09:00:08 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-08-01 09:00:08 +0300 |
commit | 6bc6592a4360b437e6dd7943a37c068e595c57e8 (patch) | |
tree | 06a3338eb767479f4b7ea7a397a651645b634e06 /app/views/shared | |
parent | 65727aa882177f414bc066c4c4dc40b77ab0b8d3 (diff) |
(CE Port) Add filters for Productivity Analytics
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/issuable/_search_bar.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_search_bar.html.haml b/app/views/shared/issuable/_search_bar.html.haml index e253413929a..c9458475aa5 100644 --- a/app/views/shared/issuable/_search_bar.html.haml +++ b/app/views/shared/issuable/_search_bar.html.haml @@ -1,6 +1,7 @@ - type = local_assigns.fetch(:type) - board = local_assigns.fetch(:board, nil) -- block_css_class = type != :boards_modal ? 'row-content-block second-block' : '' +- is_not_boards_modal_or_productivity_analytics = type != :boards_modal && type != :productivity_analytics +- block_css_class = is_not_boards_modal_or_productivity_analytics ? 'row-content-block second-block' : '' - user_can_admin_list = board && can?(current_user, :admin_list, board.parent) .issues-filters{ class: ("w-100" if type == :boards_modal) } @@ -155,5 +156,5 @@ - if @project #js-add-issues-btn.prepend-left-10{ data: { can_admin_list: can?(current_user, :admin_list, @project) } } #js-toggle-focus-btn - - elsif type != :boards_modal + - elsif is_not_boards_modal_or_productivity_analytics = render 'shared/issuable/sort_dropdown' |