Commit b49c1cb161e4d97c4ee33ae45a48e948f1097e60
1 parent
62ef763a
Exists in
master
and in
4 other branches
Display note count on network graph.
Showing
2 changed files
with
10 additions
and
3 deletions
Show diff stats
app/helpers/graph_helper.rb
1 | 1 | module GraphHelper |
2 | - def join_with_space(ary) | |
3 | - ary.collect{|r|r.name}.join(" ") unless ary.nil? | |
2 | + def get_refs(commit) | |
3 | + refs = "" | |
4 | + refs += commit.refs.collect{|r|r.name}.join(" ") if commit.refs | |
5 | + | |
6 | + # append note count | |
7 | + notes = @project.notes.for_commit_id(commit.id) | |
8 | + refs += "[#{notes.count}]" if notes.any? | |
9 | + | |
10 | + refs | |
4 | 11 | end |
5 | 12 | |
6 | 13 | def parents_zip_spaces(parents, parent_spaces) | ... | ... |