user dashboard

This commit is contained in:
gitlabhq 2011-10-31 22:57:16 +02:00
parent 267bd6068c
commit 485c5199b7
7 changed files with 73 additions and 4 deletions

View file

@ -1,2 +1,9 @@
module DashboardHelper
def path_to_object(project, object)
case object.class.name.to_s
when "Issue" then project_issues_path(project, project.issues.find(object.id))
when "Grit::Commit" then project_commit_path(project, project.repo.commits(object.id).first)
else "#"
end
end
end