Dashboard filters for events
This commit is contained in:
parent
899afd0067
commit
23734a715e
7 changed files with 130 additions and 33 deletions
|
@ -269,4 +269,13 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def items_for entity
|
||||
case entity
|
||||
when 'issue' then
|
||||
issues
|
||||
when 'merge_request' then
|
||||
merge_requests
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue