gitlabhq/app/views/hooks/_data_ex.html.erb

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-01-08 12:20:20 +01:00
<% data_ex_str = <<eos
{
2013-01-08 15:34:15 +01:00
"before": "95790bf891e76fee5e1747ab589903a6a1f80f22",
"after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
"ref": "refs/heads/master",
"user_id": 4,
"user_name": "John Smith",
"repository": {
"name": "Diaspora",
"url": "git@localhost:diaspora.git",
"description": "",
"homepage": "http://localhost/diaspora",
},
"commits": [
{
"id": "b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
"message": "Update Catalan translation to e38cb41.",
"timestamp": "2011-12-12T14:27:31+02:00",
"url": "http://localhost/diaspora/commits/b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
"author": {
"name": "Jordi Mallach",
"email": "jordi@softcatala.org",
}
2012-01-08 12:20:20 +01:00
},
2013-01-08 15:34:15 +01:00
// ...
{
"id": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
"message": "fixed readme",
"timestamp": "2012-01-03T23:36:29+02:00",
"url": "http://localhost/diaspora/commits/da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
"author": {
"name": "GitLab dev user",
"email": "gitlabdev@dv6700.(none)",
},
},
],
"total_commits_count": 4,
};
2012-01-08 12:20:20 +01:00
eos
%>
2013-01-09 08:47:25 +01:00
<div class="<%= user_color_scheme_class%>">
2013-01-08 15:34:15 +01:00
<%= raw Pygments::Lexer[:js].highlight(data_ex_str) %>
</div>