2020-03-09 13:42:32 +05:30
|
|
|
<% self.formats = [:html] %>
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
<%= 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: {
|
|
|
|
name: c.author_name,
|
|
|
|
email: c.author_email,
|
2018-03-27 19:54:05 +05:30
|
|
|
icon: image_path(avatar_icon_for_email(c.author_email, 20))
|
2014-09-02 18:07:02 +05:30
|
|
|
},
|
|
|
|
time: c.time,
|
|
|
|
space: c.spaces.first,
|
2018-03-17 18:26:18 +05:30
|
|
|
refs: refs(@graph.repo, c),
|
2014-09-02 18:07:02 +05:30
|
|
|
id: c.sha,
|
|
|
|
date: c.date,
|
|
|
|
message: c.message,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}.to_json
|
|
|
|
) %>
|