Skip to content

Commit

Permalink
Merge pull request #97 from Gazler/hompage_changes
Browse files Browse the repository at this point in the history
Hompage changes
  • Loading branch information
andrew committed Dec 2, 2012
2 parents 23f3e7c + 72453a1 commit 849a84b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/controllers/static_controller.rb
@@ -1,7 +1,5 @@
class StaticController < ApplicationController
def homepage
redirect_to dashboard_path if logged_in?

@projects = Project.limit(200).sample(14).sort_by(&:name)
@users = User.limit(200).sample(45)
@pull_requests = PullRequest.order('created_at desc').limit(5)
Expand Down
2 changes: 1 addition & 1 deletion app/views/static/homepage.html.haml
Expand Up @@ -43,7 +43,7 @@
.row-fluid.clearfix
.span12
%h3
Latest Pull Requests
Latest Pull Requests (#{PullRequest.count} total)
= link_to 'View All', pull_requests_path, :class => 'btn pull-right'

#pull_requests
Expand Down

0 comments on commit 849a84b

Please sign in to comment.