Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hompage changes #97

Merged
merged 2 commits into from Dec 2, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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