2020-01-29 18:08:47 +00:00
|
|
|
<% self.formats = [:html] %>
|
2013-03-06 11:31:28 +00:00
|
|
|
|
|
|
|
<%= raw(
|
|
|
|
{
|
|
|
|
days: @graph.days.compact.map { |d| [d.day, d.strftime("%b")] },
|
|
|
|
commits: @graph.commits.map do |c|
|
|
|
|
{
|
2013-03-07 11:36:40 +00:00
|
|
|
parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces),
|
2013-03-06 11:31:28 +00:00
|
|
|
author: {
|
2013-04-03 06:32:17 +00:00
|
|
|
name: c.author_name,
|
|
|
|
email: c.author_email,
|
2018-02-09 11:10:53 +00:00
|
|
|
icon: image_path(avatar_icon_for_email(c.author_email, 20))
|
2013-03-06 11:31:28 +00:00
|
|
|
},
|
|
|
|
time: c.time,
|
|
|
|
space: c.spaces.first,
|
2018-01-31 10:03:13 +00:00
|
|
|
refs: refs(@graph.repo, c),
|
2013-03-06 11:31:28 +00:00
|
|
|
id: c.sha,
|
|
|
|
date: c.date,
|
|
|
|
message: c.message,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}.to_json
|
|
|
|
) %>
|