<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2009 Fabio Akita # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2008 Johan Sørensen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <% @page_title = t("views.merges.page_title", :repo => h(@repository.name)) -%> <%= breadcrumbs_from(@root) -%>

<%= t("views.merges.page_title", :repo => h(@repository.name)) %>

<%= t("views.merges.hint") %>

Filter by status: <%= render_status_tag_list(@status_tags, @repository) -%>
<% if @open_merge_requests.blank? -%>

<%= t("views.merges.no_merge") %>

<% end -%> <% @open_merge_requests.each do |merge_request| -%> <% mr_path = [merge_request.source_repository.project, merge_request.target_repository, merge_request] -%> <% if merge_request.status_tag -%> <% else -%> <% end -%> <% end -%>
ID Status Summary Target branch Creator Age
<%= link_to "#"+h(merge_request.to_param), mr_path -%> <%=h merge_request.status_tag.name -%> <%=h merge_request.status_tag -%> <%= link_to h(truncate(merge_request.summary, :length=>110)), mr_path -%> <%=h merge_request.target_branch -%> <%= link_to(h(merge_request.user.login), merge_request.user) -%> <%= time_ago(merge_request.created_at) -%>
<%= render_pagination_links @open_merge_requests %>