Skip to content
Snippets Groups Projects
Commit b49c1cb1 authored by Sato Hiroyuki's avatar Sato Hiroyuki
Browse files

Display note count on network graph.

parent 62ef763a
No related branches found
No related tags found
1 merge request!3369Display note count on network graph.
module GraphHelper
def join_with_space(ary)
ary.collect{|r|r.name}.join(" ") unless ary.nil?
def get_refs(commit)
refs = ""
refs += commit.refs.collect{|r|r.name}.join(" ") if commit.refs
# append note count
notes = @project.notes.for_commit_id(commit.id)
refs += "[#{notes.count}]" if notes.any?
refs
end
 
def parents_zip_spaces(parents, parent_spaces)
Loading
Loading
Loading
Loading
@@ -13,7 +13,7 @@
},
time: c.time,
space: c.spaces.first,
refs: join_with_space(c.refs),
refs: get_refs(c),
id: c.sha,
date: c.date,
message: c.message,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment