2013-03-06 06:31:28 -05:00
|
|
|
<% self.formats = ["html"] %>
|
|
|
|
|
|
|
|
<%= 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,
|
2015-09-23 11:42:32 -04:00
|
|
|
icon: image_path(avatar_icon(c.author_email, 20))
|
2013-03-06 06:31:28 -05:00
|
|
|
},
|
|
|
|
time: c.time,
|
|
|
|
space: c.spaces.first,
|
2013-08-19 23:05:23 -04:00
|
|
|
refs: get_refs(@graph.repo, c),
|
2013-03-06 06:31:28 -05:00
|
|
|
id: c.sha,
|
|
|
|
date: c.date,
|
|
|
|
message: c.message,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}.to_json
|
|
|
|
) %>
|