%
  #--
  #   Copyright (C) 2012 Gitorious AS
  #   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)) -%>
<%= cache([[@project, @repository], :commits, @ref, @commits.current_page], {:expires_in => 10.minutes}) do -%>
  <%= render :partial => "log" -%>
<% end -%>
<%= content_for :sidebar do -%>
  
  
    <%= render_download_links(@project, @repository, params[:branch], :only_list_items => true) %>
  
  <%= cache([[@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), :title => h(tag.name) -%>
 
        <% end -%>
      
    <% end -%>
  <% end -%>
<% end -%>