Commit 03b93690 authored by gitlabhq's avatar gitlabhq

fixed link to issue from project dashboard

parent 6f915d5a
module DashboardHelper module DashboardHelper
def dashboard_feed_path(project, object) def dashboard_feed_path(project, object)
case object.class.name.to_s case object.class.name.to_s
when "Issue" then project_issues_path(project, project.issues.find(object.id)) when "Issue" then project_issue_path(project, project.issues.find(object.id))
when "Grit::Commit" then project_commit_path(project, project.repo.commits(object.id).first) when "Grit::Commit" then project_commit_path(project, project.repo.commits(object.id).first)
when "Note" when "Note"
then then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment