2012-01-08 12:20:20 +01:00
|
|
|
<% data_ex_str = <<eos
|
|
|
|
{
|
|
|
|
:before => "95790bf891e76fee5e1747ab589903a6a1f80f22",
|
|
|
|
:after => "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
|
|
|
|
:ref => "refs/heads/master",
|
2012-03-05 23:29:40 +01:00
|
|
|
:user_id => 4,
|
|
|
|
:user_name => "John Smith",
|
2012-01-08 12:20:20 +01:00
|
|
|
:repository => {
|
|
|
|
:name => "Diaspora",
|
|
|
|
:url => "localhost/diaspora",
|
|
|
|
:description => "",
|
|
|
|
:homepage => "localhost/diaspora",
|
|
|
|
:private => true
|
|
|
|
},
|
|
|
|
:commits => [
|
|
|
|
[0] {
|
|
|
|
:id => "450d0de7532f8b663b9c5cce183b...",
|
|
|
|
:message => "Update Catalan translation to e38cb41.",
|
|
|
|
:timestamp => "2011-12-12T14:27:31+02:00",
|
|
|
|
:url => "http://localhost/diaspora/commits/450d0de7532f...",
|
|
|
|
:author => {
|
|
|
|
:name => "Jordi Mallach",
|
|
|
|
:email => "jordi@softcatala.org"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
....
|
|
|
|
|
|
|
|
[3] {
|
|
|
|
:id => "da1560886d4f094c3e6c9ef40349...",
|
|
|
|
:message => "fixed readme",
|
|
|
|
:timestamp => "2012-01-03T23:36:29+02:00",
|
|
|
|
:url => "http://localhost/diaspora/commits/da1560886d...",
|
|
|
|
:author => {
|
|
|
|
:name => "gitlab dev user",
|
|
|
|
:email => "gitlabdev@dv6700.(none)"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
eos
|
|
|
|
%>
|
|
|
|
<% js_lexer = Pygments::Lexer[:js] %>
|
|
|
|
<%= raw js_lexer.highlight(data_ex_str) %>
|