30 lines
977 B
Text
30 lines
977 B
Text
= render "merge_requests/head"
|
|
|
|
.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
|
|
|
|
.clear
|
|
%hr
|
|
|
|
- if @merge_requests.count > 0
|
|
%div{ :class => "update-data ui-box ui-box-small ui-box-big" }
|
|
.data
|
|
= render @merge_requests
|
|
|
|
.clear
|
|
%br
|
|
|
|
- unless @merge_requests.count > 0 || params[:f] == "2"
|
|
.notice_holder
|
|
%li Merge Requests do not exist yet.
|
|
- if can? current_user, :write_merge_request, @project
|
|
%li You can add a new one by clicking on "Add New" button
|
|
|