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

31 lines
977 B
Plaintext
Raw Normal View History

= render "merge_requests/head"
2012-01-21 22:17:29 +01: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 08:39:43 +01:00
2012-01-21 22:17:29 +01:00
.clear
%hr
2011-11-28 08:39:43 +01:00
2012-01-21 22:17:29 +01:00
- if @merge_requests.count > 0
2011-11-28 19:30:35 +01:00
%div{ :class => "update-data ui-box ui-box-small ui-box-big" }
.data
2012-01-21 22:17:29 +01:00
= render @merge_requests
2011-11-28 19:30:35 +01:00
.clear
%br
2011-11-28 08:39:43 +01:00
2012-01-21 22:17:29 +01:00
- 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