<% #-- # Copyright (C) 2010 Tero Hänninen # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2007, 2008 Johan Sørensen # Copyright (C) 2008 David A. Cuadrado # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2009 Fabio Akita # # 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.repos.show_page_title", :repo => @repository.name, :title => @owner.title) -%> <%= breadcrumbs_from(@root) -%> <% render_if_ready(@repository) do -%> <%= render :partial => "repositories/overview", :locals => {:repository => @repository, :verbose => true} -%> <% if @repository.committers.include?(current_user) -%> <%= render "getting_started" -%> <% end -%>

<%= t("views.repos.activities") %> <%= feed_icon @atom_auto_discovery_url %>

<%= render :partial => "events/events", :locals => { :events => @events } -%> <% end -%> <% content_for :sidebar do -%>
  • <%= t("views.repos.project") %>: <%= link_to h(@repository.project.slug), @repository.project -%>
  • <%= t("views.repos.owner") %>: <%= link_to h(@repository.owner.to_param_with_prefix), @repository.owner -%> <% if @repository.owned_by_group? -%> (through <%= link_to h(@repository.user.to_param_with_prefix), @repository.user -%>) <% end -%>
  • <% if @repository.parent -%>
  • <%= t("views.repos.clone_of") %>: <%= link_to h(@repository.parent.gitdir), repo_owner_path(@repository.parent, [@repository.parent.project, @repository.parent]) -%>
  • <% end -%>
  • <%= t("views.repos.license") -%>: <%= h(@repository.license) -%>
  • <%= t("views.repos.created") %>: <%= @repository.created_at.to_s(:short) -%>
  • <% if @repository.mirror_repo? -%>
  • <%= t("views.repos.mirroring") %>: <%= @repository.mirror_human_name -%>
  • <% end -%>
  • <%= t("views.repos.visibility") %>: <%= @repository.visibility_to_string -%>
<%= render :partial => "committers_sidebar" -%> <% if @repository.private? -%> <%= render :partial => "viewers_sidebar" -%> <% end -%> <% unless @commits.blank? -%>

<%= t("views.logs.branches") %>:

    <% @repository.git.branches.each do |branch| -%>
  • <%= link_to h(branch.name), project_repository_log_path(@owner, @repository, ensplat_path(branch.name)) -%>
  • <% end -%>
<% end -%> <% cache([@project, @repository, :clone_list], :expires_in => 5.minutes) do -%> <%= render "clone_list" -%> <% end -%> <% end -%>