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