2012-06-30 23:35:24 +02:00
|
|
|
%h3.page_title
|
2012-01-29 11:04:09 +01:00
|
|
|
Merge Requests
|
|
|
|
- if can? current_user, :write_issue, @project
|
2012-09-02 18:31:16 +02:00
|
|
|
= link_to new_project_merge_request_path(@project), class: "right btn", title: "New Merge Request" do
|
2012-01-29 11:04:09 +01:00
|
|
|
New Merge Request
|
2011-11-28 08:39:43 +01:00
|
|
|
|
2012-02-26 21:06:40 +01:00
|
|
|
%br
|
2011-11-28 08:39:43 +01:00
|
|
|
|
2012-06-21 07:29:53 +02:00
|
|
|
|
2012-02-18 13:12:48 +01:00
|
|
|
.ui-box
|
|
|
|
.title
|
2012-04-10 07:51:08 +02:00
|
|
|
%ul.nav.nav-pills
|
2012-09-02 18:31:16 +02:00
|
|
|
%li{class: ("active" if (params[:f] == 'open' || !params[:f]))}
|
|
|
|
= link_to project_merge_requests_path(@project, f: 'open') do
|
2012-02-18 13:12:48 +01:00
|
|
|
Open
|
2012-09-02 18:31:16 +02:00
|
|
|
%li{class: ("active" if params[:f] == "closed")}
|
|
|
|
= link_to project_merge_requests_path(@project, f: "closed") do
|
2012-02-18 13:12:48 +01:00
|
|
|
Closed
|
2012-09-02 18:31:16 +02:00
|
|
|
%li{class: ("active" if params[:f] == 'assigned-to-me')}
|
|
|
|
= link_to project_merge_requests_path(@project, f: 'assigned-to-me') do
|
2012-02-18 13:12:48 +01:00
|
|
|
To Me
|
2012-09-02 18:31:16 +02:00
|
|
|
%li{class: ("active" if params[:f] == 'all')}
|
|
|
|
= link_to project_merge_requests_path(@project, f: 'all') do
|
2012-02-18 13:12:48 +01:00
|
|
|
All
|
2012-01-29 11:04:09 +01:00
|
|
|
|
2012-03-10 22:41:05 +01:00
|
|
|
%ul.unstyled
|
|
|
|
= render @merge_requests
|
|
|
|
- if @merge_requests.blank?
|
|
|
|
%li
|
2012-06-21 07:29:53 +02:00
|
|
|
%h4.nothing_here_message Nothing to show here
|
2012-03-21 23:09:57 +01:00
|
|
|
- if @merge_requests.present?
|
|
|
|
%li.bottom
|
|
|
|
.row
|
2012-08-11 00:07:50 +02:00
|
|
|
.span7= paginate @merge_requests, theme: "gitlab"
|
2012-03-21 23:09:57 +01:00
|
|
|
.span4.right
|
|
|
|
%span.cgray.right #{@merge_requests.total_count} merge requests for this filter
|
2011-11-28 08:39:43 +01:00
|
|
|
|