Adding anchor and href so can link to calls

This commit is contained in:
Simon Redfern 2015-10-02 18:37:05 +02:00
parent ec5d045c1d
commit f91d88e1f0
2 changed files with 4 additions and 2 deletions

View File

@ -166,7 +166,9 @@ class ApiExplorer extends Loggable {
// replace the node identified by the class "resource" with the following
// This creates the list of resources in the DOM
".resource" #> resources.map { i =>
".resource_description" #> i.description &
".resource_description *" #> i.description &
".resource_description [href]" #> s"#${i.id}" &
".resource_description [name]" #> s"${i.id}" &
// Replace attribute named overview_text with the value (whole div/span element is replaced leaving just the text)
"@overview_text" #> i.overview &
// Give attributes named overview an id

View File

@ -17,7 +17,7 @@
<!-- Note: id's are added so we can manipulate individual elements -->
<tr class="resource">
<!-- Some documentation -->
<td><span class="resource_description"></span></td>
<td><a class="resource_description" href="#replace-me">Description</a></td>
<td><div name="overview" class="markdown"><span name="overview_text">Overview</span></div></td>
<td>