end
end
- def search
- result = SearchContext.new(project_ids, params).execute
-
- @projects = result[:projects]
- @merge_requests = result[:merge_requests]
- @issues = result[:issues]
- @wiki_pages = result[:wiki_pages]
- end
-
def people
@project = group.projects.find(params[:project_id]) if params[:project_id]
@users = @project ? @project.users : group.users
+++ /dev/null
-= form_tag search_group_path(@group), method: :get, class: 'form-inline' do |f|
- .padded
- = label_tag :search do
- %strong Looking for
- .input
- = search_field_tag :search, params[:search], placeholder: "issue 143", class: "input-xxlarge search-text-input", id: "dashboard_search"
- = submit_tag 'Search', class: "btn btn-primary wide"
-- if params[:search].present?
- = render 'search/result'
= link_to merge_requests_group_path(@group) do
Merge Requests
%span.count= current_user.cared_merge_requests.opened.of_group(@group).count
- = nav_link(path: 'groups#search') do
- = link_to "Search", search_group_path(@group)
= nav_link(path: 'groups#people') do
= link_to "People", people_group_path(@group)