mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
REmove duplicating search on dashboard issues/mr
This commit is contained in:
@ -35,8 +35,6 @@ class DashboardController < ApplicationController
|
||||
current_user.authorized_projects
|
||||
end.sorted_by_activity
|
||||
|
||||
@projects = @projects.search(params[:search]) if params[:search].present?
|
||||
|
||||
@labels = current_user.authorized_projects.tags_on(:labels)
|
||||
|
||||
@projects = @projects.tagged_with(params[:label]) if params[:label].present?
|
||||
|
@ -1,11 +1,5 @@
|
||||
= form_tag dashboard_filter_path(entity), method: 'get' do
|
||||
%fieldset.dashboard-search-filter
|
||||
= search_field_tag "search", params[:search], { id: 'filter_search', placeholder: 'Search', class: 'search-text-input' }
|
||||
= button_tag type: 'submit', class: 'btn' do
|
||||
%i.icon-search
|
||||
|
||||
%fieldset
|
||||
%legend Status:
|
||||
%ul.nav.nav-pills.nav-stacked
|
||||
%li{class: ("active" if !params[:status])}
|
||||
= link_to dashboard_filter_path(entity, status: nil) do
|
||||
|
@ -1,9 +1,11 @@
|
||||
%h3.page_title
|
||||
Issues
|
||||
%small (assigned to you)
|
||||
%small.pull-right #{@issues.total_count} issues
|
||||
%span.light
|
||||
–
|
||||
Assigned to you
|
||||
%span.pull-right #{@issues.total_count} issues
|
||||
|
||||
%hr
|
||||
%br
|
||||
|
||||
.row
|
||||
.span3
|
||||
|
@ -1,9 +1,11 @@
|
||||
%h3.page_title
|
||||
Merge Requests
|
||||
%small (authored by or assigned to you)
|
||||
%small.pull-right #{@merge_requests.total_count} merge requests
|
||||
%span.light
|
||||
–
|
||||
Authored by or assigned to you
|
||||
%span.pull-right #{@merge_requests.total_count} merge requests
|
||||
|
||||
%hr
|
||||
%br
|
||||
.row
|
||||
.span3
|
||||
= render 'filter', entity: 'merge_request'
|
||||
|
Reference in New Issue
Block a user