gitlab-org--gitlab-foss/app/views/projects/network/show.json.erb

24 lines
591 B
Text
Raw Normal View History

<% self.formats = ["html"] %>
<%= raw(
{
days: @graph.days.compact.map { |d| [d.day, d.strftime("%b")] },
commits: @graph.commits.map do |c|
{
parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces),
author: {
2013-04-03 02:32:17 -04:00
name: c.author_name,
email: c.author_email,
icon: image_path(avatar_icon_for_email(c.author_email, 20))
},
time: c.time,
space: c.spaces.first,
refs: refs(@graph.repo, c),
id: c.sha,
date: c.date,
message: c.message,
}
end
}.to_json
) %>