gitlab-org--gitlab-foss/app/views/merge_requests/index.html.haml

29 lines
1.1 KiB
Text
Raw Normal View History

2012-01-21 16:17:29 -05:00
.left.issues_filter
= form_tag project_merge_requests_path(@project), :method => :get do
.left
= radio_button_tag :f, 0, (params[:f] || "0") == "0", :onclick => "this.form.submit()", :id => "open_merge_requests", :class => "status"
= label_tag "open_merge_requests" do
%span.tag.open Open
.left
= radio_button_tag :f, 2, params[:f] == "2", :onclick => "this.form.submit()", :id => "closed_merge_requests", :class => "status"
= label_tag "closed_merge_requests" do
%span.tag.closed Closed
2011-11-28 02:39:43 -05:00
2012-01-21 16:17:29 -05:00
.clear
%hr
2011-11-28 02:39:43 -05:00
2012-01-27 02:19:55 -05:00
.row
.span10
- if @merge_requests.count > 0
%div{ :class => "update-data ui-box ui-box-small ui-box-big" }
.data
= render @merge_requests
.span4
- if can? current_user, :write_merge_request, @project
2012-01-27 02:19:55 -05:00
.alert-message.block-message.info
%p You can open a new merge request.
- if current_page?(project_merge_requests_path(@project))
= link_to new_project_merge_request_path(@project), :class => "btn small", :title => "New Merge request" do
Add new