gitlabhq/app/views/merge_requests/index.html.haml

51 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-01-29 11:04:09 +01:00
%h3
Merge Requests
- if can? current_user, :write_issue, @project
= link_to new_project_merge_request_path(@project), :class => "right btn small", :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
.mrs_legend
.list_legend
.icon.today
.text Today
.list_legend
.icon.merged
.text Merged
.list_legend
.icon.closed
.text Closed
.clearfix
2012-02-18 13:12:48 +01:00
.ui-box
.title
2012-04-10 07:51:08 +02:00
%ul.nav.nav-pills
2012-02-18 13:12:48 +01:00
%li{:class => ("active" if (params[:f] == "0" || !params[:f]))}
= link_to project_merge_requests_path(@project, :f => 0) do
2012-02-18 13:12:48 +01:00
Open
%li{:class => ("active" if params[:f] == "2")}
= link_to project_merge_requests_path(@project, :f => 2) do
2012-02-18 13:12:48 +01:00
Closed
%li{:class => ("active" if params[:f] == "3")}
= link_to project_merge_requests_path(@project, :f => 3) do
2012-02-18 13:12:48 +01:00
To Me
%li{:class => ("active" if params[:f] == "1")}
= link_to project_merge_requests_path(@project, :f => 1) do
2012-02-18 13:12:48 +01:00
All
2012-01-29 11:04:09 +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
- if @merge_requests.present?
%li.bottom
.row
2012-04-10 20:39:04 +02:00
.span7= paginate @merge_requests, :theme => "gitlab"
.span4.right
%span.cgray.right #{@merge_requests.total_count} merge requests for this filter
2011-11-28 08:39:43 +01:00