diff options
author | Johan Sørensen <johan@johansorensen.com> | 2009-03-18 14:44:35 +0100 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2009-04-22 15:16:51 +0200 |
commit | 5701bd2357fa0c8ecc0721147c6869b2a4bce6f3 (patch) | |
tree | 1d5fd4468cf87fa13109d53ac1ffd71d575d04db /app/controllers/projects_controller.rb | |
parent | c574a995debb2dbe358294ef806472f91abba18f (diff) | |
download | gitorious-mainline-outdated-5701bd2357fa0c8ecc0721147c6869b2a4bce6f3.zip gitorious-mainline-outdated-5701bd2357fa0c8ecc0721147c6869b2a4bce6f3.tar.gz gitorious-mainline-outdated-5701bd2357fa0c8ecc0721147c6869b2a4bce6f3.tar.bz2 |
Add some most-active-projects boxes to make the projects make slightly more interesting
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index cb5509c..dac7b9e 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -32,7 +32,11 @@ class ProjectsController < ApplicationController @atom_auto_discovery_url = projects_path(:format => :atom) respond_to do |format| - format.html { @tags = Project.top_tags } + format.html { + @active_recently = Project.most_active_recently + @active_overall = Project.most_active_overall(@active_recently.size) + @tags = Project.top_tags + } format.xml { render :xml => @projects } format.atom { } end |