2013-01-21 07:16:48 -05:00
|
|
|
- if can? current_user, :write_merge_request, @project
|
2013-01-30 09:40:43 -05:00
|
|
|
= link_to new_project_merge_request_path(@project), class: "pull-right btn btn-primary", title: "New Merge Request" do
|
2013-01-05 07:49:08 -05:00
|
|
|
%i.icon-plus
|
|
|
|
New Merge Request
|
2012-06-30 17:35:24 -04:00
|
|
|
%h3.page_title
|
2012-01-29 05:04:09 -05:00
|
|
|
Merge Requests
|
2011-11-28 02:39:43 -05:00
|
|
|
|
2012-02-26 15:06:40 -05:00
|
|
|
%br
|
2011-11-28 02:39:43 -05:00
|
|
|
|
2012-06-21 01:29:53 -04:00
|
|
|
|
2013-01-08 00:14:05 -05:00
|
|
|
.row
|
|
|
|
.span3
|
2013-01-21 07:16:48 -05:00
|
|
|
= render 'filter'
|
2013-01-08 00:14:05 -05:00
|
|
|
.span9
|
|
|
|
.ui-box
|
|
|
|
.title
|
|
|
|
= form_tag project_merge_requests_path(@project), id: "merge_requests_search_form", method: :get, class: :left do
|
|
|
|
= select_tag(:assignee_id, options_from_collection_for_select([unassigned_filter] + @project.users.all, "id", "name", params[:assignee_id]), prompt: "Assignee")
|
|
|
|
= select_tag(:milestone_id, options_from_collection_for_select([unassigned_filter] + @project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), prompt: "Milestone")
|
|
|
|
= hidden_field_tag :f, params[:f]
|
|
|
|
.clearfix
|
2012-01-29 05:04:09 -05:00
|
|
|
|
2013-01-08 00:14:05 -05:00
|
|
|
%ul.well-list
|
|
|
|
= render @merge_requests
|
|
|
|
- if @merge_requests.blank?
|
|
|
|
%li
|
|
|
|
%h4.nothing_here_message Nothing to show here
|
|
|
|
- if @merge_requests.present?
|
|
|
|
%li.bottom
|
|
|
|
.left= paginate @merge_requests, theme: "gitlab"
|
2013-01-30 09:40:43 -05:00
|
|
|
.pull-right
|
|
|
|
%span.cgray.pull-right #{@merge_requests.total_count} merge requests for this filter
|
2011-11-28 02:39:43 -05:00
|
|
|
|
2012-10-26 08:52:10 -04:00
|
|
|
:javascript
|
2013-01-04 20:18:39 -05:00
|
|
|
$(merge_requestsPage);
|