summaryrefslogtreecommitdiff
path: root/app/views/help
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-07-06 03:05:12 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-07-06 03:05:12 +0300
commitbe1b40802dcbfd59ecdd3c7439fc48d6cec97e2b (patch)
tree5a1bd003c3b9f501d6cc13ae2832218df76d0807 /app/views/help
parent6451e837bf2cf11f8956824329ddde0e14171a8e (diff)
downloadgitlab-ce-be1b40802dcbfd59ecdd3c7439fc48d6cec97e2b.tar.gz
Api page in help
Diffstat (limited to 'app/views/help')
-rw-r--r--app/views/help/api.html.haml41
-rw-r--r--app/views/help/index.html.haml3
2 files changed, 44 insertions, 0 deletions
diff --git a/app/views/help/api.html.haml b/app/views/help/api.html.haml
new file mode 100644
index 00000000000..008e06df6ef
--- /dev/null
+++ b/app/views/help/api.html.haml
@@ -0,0 +1,41 @@
+%h3 API
+.back_link
+ = link_to help_path do
+ &larr; to index
+%hr
+
+%ol
+ %li
+ %a{:href => "#README"} README
+ %li
+ %a{:href => "#Projects"} Projects
+ %li
+ %a{:href => "#Users"} Users
+
+.file_holder#README
+ .file_title
+ %i.icon-file
+ README
+ .file_content.wiki
+ = preserve do
+ = markdown File.read(Rails.root.join("doc", "api", "README.md"))
+
+%br
+
+.file_holder#projects
+ .file_title
+ %i.icon-file
+ Projects
+ .file_content.wiki
+ = preserve do
+ = markdown File.read(Rails.root.join("doc", "api", "projects.md"))
+
+%br
+
+.file_holder#users
+ .file_title
+ %i.icon-file
+ Users
+ .file_content.wiki
+ = preserve do
+ = markdown File.read(Rails.root.join("doc", "api", "users.md"))
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml
index 25b9e3e5208..b6c52712c4d 100644
--- a/app/views/help/index.html.haml
+++ b/app/views/help/index.html.haml
@@ -22,3 +22,6 @@
%li
%h5= link_to "Web Hooks", help_web_hooks_path
+
+ %li
+ %h5= link_to "API", help_api_path