Commit 0a0cdc6c61007675f92ff474d605dcf7b617a6be
1 parent
58427749
Exists in
master
and in
4 other branches
Limit amount of contributors at graph to 100 persons
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
app/assets/javascripts/stat_graph_contributors.js.coffee
... | ... | @@ -12,7 +12,8 @@ class window.ContributorsStatGraph |
12 | 12 | @master_graph.draw() |
13 | 13 | add_authors_graph: (author_data) -> |
14 | 14 | @authors = [] |
15 | - _.each(author_data, (d) => | |
15 | + limited_author_data = author_data.slice(0, 100) | |
16 | + _.each(limited_author_data, (d) => | |
16 | 17 | author_header = @create_author_header(d) |
17 | 18 | $(".contributors-list").append(author_header) |
18 | 19 | @authors[d.author] = author_graph = new ContributorsAuthorGraph(d.dates) | ... | ... |
app/views/projects/graphs/show.html.haml