mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
Adding anchor and href so can link to calls
This commit is contained in:
parent
ec5d045c1d
commit
f91d88e1f0
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user