<% #-- # Copyright (C) 2010 Juho Nieminen # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2007, 2008 Johan Sørensen # 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.projects.title") -%>

Projects

Showing projects that are visible to everyone, newest first.

    <% @projects.each do |project| -%> <% if project.can_be_viewed_by?(current_user, logged_in?) -%>
  • <%= render :partial => project, :object => project -%>
  • <% end -%> <% end -%>
<%= will_paginate @projects -%> <% content_for :sidebar do -%>

<%= t("views.projects.popular") %>:

    <% @tags.each do |tag| %>
  • <%= link_to h(tag.name), search_path(:q => "category:#{h(tag.name)}") -%>
  • <% end %>
<% pull_box("Most active (last two weeks)") do -%>
    <% @active_recently.each do |project| -%> <% if logged_in? || project.public_to_world? -%>
  • <%= link_to h(project.title), project -%>
  • <% end -%> <% end -%>
<% end -%> <% if logged_in? -%> <% pull_box("Your active projects") do -%>
    <% @user_projects.each do |project| -%>
  • <%= link_to h(project.title), project -%>
  • <% end -%>
<% end -%> <% end -%> <% end -%>