Commit 11721b0dbe82c35789be3e4fa8e14663934b2ff5

Authored by randx
1 parent 9c8a1e65

Help section for system hooks completed

app/views/admin/hooks/_data_ex.html.erb
1 <% data_ex_str = <<eos 1 <% data_ex_str = <<eos
  2 +1. Project created:
2 { 3 {
3 "created_at": "2012-07-21T07:30:54Z", 4 "created_at": "2012-07-21T07:30:54Z",
4 "event_name": "project_create", 5 "event_name": "project_create",
@@ -8,6 +9,57 @@ @@ -8,6 +9,57 @@
8 "path": "storecloud", 9 "path": "storecloud",
9 "project_id": 74 10 "project_id": 74
10 } 11 }
  12 +
  13 +2. Project destroyed:
  14 +{
  15 + "event_name": "project_destroy",
  16 + "name": "Underscore",
  17 + "owner_email": "johnsmith@gmail.com",
  18 + "owner_name": "John Smith",
  19 + "path": "underscore",
  20 + "project_id": 73
  21 +}
  22 +
  23 +3. New Team Member:
  24 +{
  25 + "created_at": "2012-07-21T07:30:56Z",
  26 + "event_name": "user_add_to_team",
  27 + "project_access": "Master",
  28 + "project_id": 74,
  29 + "project_name": "StoreCloud",
  30 + "project_path": "storecloud",
  31 + "owner_email": "johnsmith@gmail.com",
  32 + "owner_name": "John Smith",
  33 +}
  34 +
  35 +4. Team Member Removed:
  36 +{
  37 + "created_at": "2012-07-21T07:30:56Z",
  38 + "event_name": "user_remove_from_team",
  39 + "project_access": "Master",
  40 + "project_id": 74,
  41 + "project_name": "StoreCloud",
  42 + "project_path": "storecloud",
  43 + "owner_email": "johnsmith@gmail.com",
  44 + "owner_name": "John Smith",
  45 +}
  46 +
  47 +5. User created:
  48 +{
  49 + "created_at": "2012-07-21T07:44:07Z",
  50 + "email": "js@gitlabhq.com",
  51 + "event_name": "user_create",
  52 + "name": "John Smith"
  53 +}
  54 +
  55 +6. User removed:
  56 +{
  57 + "created_at": "2012-07-21T07:44:07Z",
  58 + "email": "js@gitlabhq.com",
  59 + "event_name": "user_destroy",
  60 + "name": "John Smith"
  61 +}
  62 +
11 eos 63 eos
12 %> 64 %>
13 <% js_lexer = Pygments::Lexer[:js] %> 65 <% js_lexer = Pygments::Lexer[:js] %>
app/views/help/index.html.haml
@@ -24,4 +24,7 @@ @@ -24,4 +24,7 @@
24 %h5= link_to "Web Hooks", help_web_hooks_path 24 %h5= link_to "Web Hooks", help_web_hooks_path
25 25
26 %li 26 %li
  27 + %h5= link_to "System Hooks", help_system_hooks_path
  28 +
  29 + %li
27 %h5= link_to "API", help_api_path 30 %h5= link_to "API", help_api_path