%
#--
# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
#
# 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.logs.title", :repo_url => h(@repository.url_path), :ref => h(@ref)) -%>
<%= breadcrumbs_from(@root) -%>
<%= t("views.logs.title", :repo_url => h(@repository.url_path), :ref => h(@ref)) -%>
<%= commit_graph_tag(@repository) %>
<% cache([repo_owner_path(@repository, [@project, @repository]), :commits, @ref, @commits.current_page], {:expires_in => 10.minutes}) do -%>
<%= render :partial => "log" -%>
<% end -%>
<% content_for :sidebar do -%>
-
<%= t("views.logs.project") %>:
<%= link_to h(@repository.project.title), @repository.project -%>
-
<%= t("views.repos.owner") %>:
<%= link_to h(@repository.owner.to_param_with_prefix), @repository.owner -%>
<% unless @commits.blank? -%>
-
<%= t("views.logs.head_tree") %>:
<%= link_to h(@commits.first.tree.id[0,7]), tree_path(branch_with_tree(@commits.first.id, [])) -%>
<% end -%>
<%= render_download_links(@project, @repository, params[:branch], :only_list_items => true) %>
<% cache([repo_owner_path(@repository, [@project, @repository]), :tags_and_branches],
{:expires_in => 10.minutes}) do -%>
<%= t("views.logs.branches") %>:
<%= render_branch_list_items(@git.branches) -%>
<% unless @git.tags.blank? -%>
<% @git.tags.sort{|a, b| a.name <=> b.name }.each do |tag| -%>
- <%= link_to h(tag.name), commit_path(tag.commit.id) -%>
<% end -%>
<% end -%>
<%= commit_graph_by_author_tag(@repository, params[:id]) %>
<% end -%>
<% end -%>