Skip to content

Commit

Permalink
Help section for system hooks completed
Browse files Browse the repository at this point in the history
  • Loading branch information
dzaporozhets committed Jul 21, 2012
1 parent 9c8a1e6 commit 11721b0
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
52 changes: 52 additions & 0 deletions app/views/admin/hooks/_data_ex.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<% data_ex_str = <<eos
1. Project created:
{
"created_at": "2012-07-21T07:30:54Z",
"event_name": "project_create",
Expand All @@ -8,6 +9,57 @@
"path": "storecloud",
"project_id": 74
}

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"
}

eos
%>
<% js_lexer = Pygments::Lexer[:js] %>
Expand Down
3 changes: 3 additions & 0 deletions app/views/help/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@
%li
%h5= link_to "Web Hooks", help_web_hooks_path

%li
%h5= link_to "System Hooks", help_system_hooks_path

%li
%h5= link_to "API", help_api_path

0 comments on commit 11721b0

Please sign in to comment.