<% # encoding: utf-8 #-- # Copyright (C) 2010 Juho Nieminen # Copyright (C) 2010 Tero Hänninen # Copyright (C) 2010 Marko Peltola # # 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 = "Repositories" -%>

Repositories

Showing repositories that are visible to everyone, last updated first.

    <% @repositories.each do |repo| -%> <% unless repo.private? -%>
  • <%= render :partial => "repositories/list", :locals => {:repository => repo} -%>
  • <% end -%> <% end -%>
<%= will_paginate @repositories -%> <% content_for :sidebar do -%> <% pull_box("Most active (last two weeks)") do -%>
    <% @active_recently.each do |repo| -%>
  • <%= link_to h(repo.title), repo_owner_path(repo, [repo.project, repo]) -%>
  • <% end -%>
<% end -%> <% if logged_in? -%> <% pull_box("Your active repositories") do -%>
    <% @user_repositories.each do |repo| -%>
  • <%= link_to h(repo.title), repo_owner_path(repo, [repo.project, repo]) -%> <% if repo.private_repo? -%> (p) <% elsif repo.project.public_only_to_collaborators? -%> (ptp) <% end -%>
  • <% end -%>

(p) = private, (ptp) = private trough project

<% end -%> <% end -%> <% end -%>