From 3d1fd8e01b369790c0187548c16bec21f8667d76 Mon Sep 17 00:00:00 2001 From: Simon Redfern Date: Thu, 30 Jun 2016 00:12:22 +0200 Subject: [PATCH] API List on left panel --- src/main/scala/code/snippet/ApiExplorer.scala | 8 +++---- src/main/webapp/index.html | 23 ++++++++----------- src/main/webapp/media/css/style.css | 21 +++++++++++++---- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/main/scala/code/snippet/ApiExplorer.scala b/src/main/scala/code/snippet/ApiExplorer.scala index bb31b1da..01533f36 100644 --- a/src/main/scala/code/snippet/ApiExplorer.scala +++ b/src/main/scala/code/snippet/ApiExplorer.scala @@ -704,11 +704,11 @@ class ApiExplorer extends Loggable { "#api_home_link [href]" #> s"$baseUrl" & "@views_box [style]" #> s"display: $displayViews;" & ".info-box__about_selected *" #> s"$catalogDescription" & - ".api_call_index" #> resources.map { i => + ".api_list_item" #> resources.map { i => // append the anchor to the current url. Maybe need to set the catalogue to all etc else another user might not find if the link is sent to them. - ".api_call_index_link [href]" #> s"#${i.id}" & - ".api_call_index_link *" #> i.summary & - ".api_call_index_link [id]" #> s"index_of_${i.id}" + ".api_list_item_link [href]" #> s"#${i.id}" & + ".api_list_item_link *" #> i.summary & + ".api_list_item_link [id]" #> s"index_of_${i.id}" // ".content-box__available-since *" #> s"Implmented in ${i.implementedBy.version} by ${i.implementedBy.function}" } & // replace the node identified by the class "resource" with the following diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 97c12009..0cfa3863 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -2,6 +2,15 @@
+
+ +
+ +