Commit 0a0cdc6c61007675f92ff474d605dcf7b617a6be

Authored by Dmitriy Zaporozhets
1 parent 58427749

Limit amount of contributors at graph to 100 persons

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
... ... @@ -24,8 +24,8 @@
24 24 type: "GET",
25 25 url: location.href,
26 26 complete: function() {
  27 + $(".stat-graph").fadeIn();
27 28 $(".loading-graph").hide();
28   - $(".stat-graph").show();
29 29 },
30 30 dataType: "script"
31 31 });
... ...