aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared/sidebar/_apidocs.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/sidebar/_apidocs.html.haml')
-rw-r--r--app/views/shared/sidebar/_apidocs.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/shared/sidebar/_apidocs.html.haml b/app/views/shared/sidebar/_apidocs.html.haml
new file mode 100644
index 0000000..bf7ff5b
--- /dev/null
+++ b/app/views/shared/sidebar/_apidocs.html.haml
@@ -0,0 +1,7 @@
+%h1 aclog API
+.sidebar-list
+ .list-group.list-group-scroll
+ - @apidocs.values.inject(:merge).each do |namespace, endpoints|
+ %span.list-group-head= namespace.titleize
+ - endpoints.reject {|_, e| e.route_nodoc || e.route_deprecated }.each do |action, endpoint|
+ = link_to_with_active format_endpoint_name(endpoint), about_api_endpoint_path(endpoint.route_method.downcase, namespace, action), class: "list-group-item"