Merge pull request #3369 from hiroponz/display-note-count
Display note count on network graph.
This commit is contained in:
commit
188e6a7a3f
3 changed files with 19 additions and 16 deletions
|
@ -1,6 +1,13 @@
|
|||
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…
Add table
Add a link
Reference in a new issue