Bootstrap: Activities
This commit is contained in:
parent
15b06b0164
commit
0a4222fb98
26 changed files with 324 additions and 365 deletions
|
@ -3,6 +3,7 @@ module DashboardHelper
|
|||
case object.class.name.to_s
|
||||
when "Issue" then project_issue_path(project, project.issues.find(object.id))
|
||||
when "Commit" then project_commit_path(project, project.repo.commits(object.id).first)
|
||||
when "MergeRequest" then project_merge_request_path(project, object.id)
|
||||
when "Note"
|
||||
then
|
||||
note = object
|
||||
|
@ -26,6 +27,7 @@ module DashboardHelper
|
|||
when "Note" then markdown(object.note)
|
||||
when "Issue" then object.title
|
||||
when "Commit" then object.safe_message
|
||||
when "MergeRequest" then object.title
|
||||
else return "Project Wall"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue