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

20 lines
541 B
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
New Merge Request
2011-11-28 08:39:43 +01:00
2012-01-21 22:17:29 +01:00
%hr
2011-11-28 08:39:43 +01:00
2012-01-29 11:04:09 +01:00
%ul.pills
%li{:class => ("active" if (params[:f] == "0" || !params[:f]))}
= link_to project_merge_requests_path(@project, :f => 0) do
Open
%li{:class => ("active" if params[:f] == "2")}
= link_to project_merge_requests_path(@project, :f => 2) do
Closed
%hr
%ul.unstyled= render @merge_requests
2011-11-28 08:39:43 +01:00