2012-07-12 21:10:34 +02:00
|
|
|
<% data_ex_str = <<eos
|
2012-07-21 09:47:57 +02:00
|
|
|
1. Project created:
|
2012-07-12 21:10:34 +02:00
|
|
|
{
|
2012-07-21 09:32:42 +02:00
|
|
|
"created_at": "2012-07-21T07:30:54Z",
|
|
|
|
"event_name": "project_create",
|
|
|
|
"name": "StoreCloud",
|
|
|
|
"owner_email": "johnsmith@gmail.com",
|
|
|
|
"owner_name": "John Smith",
|
|
|
|
"path": "storecloud",
|
|
|
|
"project_id": 74
|
2012-07-12 21:10:34 +02:00
|
|
|
}
|
2012-07-21 09:47:57 +02:00
|
|
|
|
|
|
|
2. Project destroyed:
|
|
|
|
{
|
|
|
|
"event_name": "project_destroy",
|
|
|
|
"name": "Underscore",
|
|
|
|
"owner_email": "johnsmith@gmail.com",
|
|
|
|
"owner_name": "John Smith",
|
|
|
|
"path": "underscore",
|
|
|
|
"project_id": 73
|
|
|
|
}
|
|
|
|
|
|
|
|
3. New Team Member:
|
|
|
|
{
|
|
|
|
"created_at": "2012-07-21T07:30:56Z",
|
|
|
|
"event_name": "user_add_to_team",
|
|
|
|
"project_access": "Master",
|
|
|
|
"project_id": 74,
|
|
|
|
"project_name": "StoreCloud",
|
|
|
|
"project_path": "storecloud",
|
|
|
|
"owner_email": "johnsmith@gmail.com",
|
|
|
|
"owner_name": "John Smith",
|
|
|
|
}
|
|
|
|
|
|
|
|
4. Team Member Removed:
|
|
|
|
{
|
|
|
|
"created_at": "2012-07-21T07:30:56Z",
|
|
|
|
"event_name": "user_remove_from_team",
|
|
|
|
"project_access": "Master",
|
|
|
|
"project_id": 74,
|
|
|
|
"project_name": "StoreCloud",
|
|
|
|
"project_path": "storecloud",
|
|
|
|
"owner_email": "johnsmith@gmail.com",
|
|
|
|
"owner_name": "John Smith",
|
|
|
|
}
|
|
|
|
|
|
|
|
5. User created:
|
|
|
|
{
|
|
|
|
"created_at": "2012-07-21T07:44:07Z",
|
|
|
|
"email": "js@gitlabhq.com",
|
|
|
|
"event_name": "user_create",
|
|
|
|
"name": "John Smith"
|
|
|
|
}
|
|
|
|
|
|
|
|
6. User removed:
|
|
|
|
{
|
|
|
|
"created_at": "2012-07-21T07:44:07Z",
|
|
|
|
"email": "js@gitlabhq.com",
|
|
|
|
"event_name": "user_destroy",
|
|
|
|
"name": "John Smith"
|
|
|
|
}
|
|
|
|
|
2012-07-12 21:10:34 +02:00
|
|
|
eos
|
|
|
|
%>
|
|
|
|
<% js_lexer = Pygments::Lexer[:js] %>
|
|
|
|
<%= raw js_lexer.highlight(data_ex_str) %>
|