mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:07:02 +00:00
Added top text for default.html. Text comes from Props. Needs styling
This commit is contained in:
parent
90a4f2b779
commit
f307558848
@ -4,6 +4,7 @@
|
||||
```
|
||||
Date Commit Action
|
||||
|
||||
28/03/2017 Added Props webui_top_text which is used by default.html (default="")
|
||||
22/03/2017 51d1742 Added Props webui_api_manager_url which is used by button on home page.
|
||||
21/03/2017 Added Props authUser.skipEmailValidation . This defaults to true to maintain current behaviour
|
||||
21/03/2017 c5f6b02 Added mail.api.consumer.registered.notification.send.sensistive to Props (default is false)
|
||||
|
||||
@ -203,6 +203,9 @@ webui_index_page_about_section_text = <p class="about-text"> \
|
||||
Welcome to the API Sandbox powered by the Open Bank Project! <br/> \
|
||||
</p>
|
||||
|
||||
# Top text appears on default.html For branding next to logo(s)
|
||||
webui_top_text=""
|
||||
|
||||
|
||||
# API Explorer url. Change to your instance
|
||||
webui_api_explorer_url = http://apiexplorer.openbankproject.com
|
||||
|
||||
@ -91,6 +91,10 @@ class WebUI extends Loggable{
|
||||
"#main-about-text *" #> scala.xml.Unparsed(Props.get("webui_index_page_about_section_text", ""))
|
||||
}
|
||||
|
||||
def topText: CssSel = {
|
||||
"#top-text *" #> scala.xml.Unparsed(Props.get("webui_top_text", ""))
|
||||
}
|
||||
|
||||
def apiExplorerLink: CssSel = {
|
||||
val tags = S.attr("tags") openOr ""
|
||||
".api-explorer-link a [href]" #> scala.xml.Unparsed(Props.get("webui_api_explorer_url", "") + s"?ignoredefcat=true&tags=$tags")
|
||||
|
||||
@ -61,6 +61,11 @@ Berlin 13359, Germany
|
||||
<div id="logo-left" class="lift:WebUI.headerLogoLeft">
|
||||
<a href="/"><img src="" alt=""></a>
|
||||
</div>
|
||||
<div id="top-text" class="lift:WebUI.topText">
|
||||
This is the top text
|
||||
</div>
|
||||
|
||||
|
||||
<div id="logo-right" class="lift:WebUI.headerLogoRight">
|
||||
<a href="/"><img src="" alt=""></a>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user