<%
  #--
  #   Copyright (C) 2013 Gitorious AS
  #
  #   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 <http://www.gnu.org/licenses/>.
  #++
%>

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

<% content_for(:head) do %>
  <%= auto_discovery_link_tag(:atom, atom_auto_discovery_url, :title => "Atom") -%>
<% end %>

<%= repo_header(repository, {
        :current_user => current_user,
        :active => :merge_request,
        :header_level => 2
        }) %>

<%= render("merge_requests/merge_request_table", {
        :atom_auto_discovery_url => atom_auto_discovery_url,
        :target => repository,
        :merge_request_statuses => merge_request_statuses,
        :status => status,
        :merge_requests => merge_requests
      }) %>

<%
  #--
  #   Copyright (C) 2013 Gitorious AS
  #
  #   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 <http://www.gnu.org/licenses/>.
  #++
%>

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

<% content_for(:head) do %>
  <%= auto_discovery_link_tag(:atom, atom_auto_discovery_url, :title => "Atom") -%>
<% end %>

<%= repo_header(repository, {
        :current_user => current_user,
        :active => :merge_requests,
        :header_level => 2
        }) %>

<%= render("merge_requests/merge_request_table", {
        :atom_auto_discovery_url => atom_auto_discovery_url,
        :target => repository,
        :merge_request_statuses => merge_request_statuses,
        :status => status,
        :merge_requests => merge_requests
      }) %>

Fix active marking of merge request tab
Fix active marking of merge request tab
