diff --git a/release_notes.md b/release_notes.md index c225ba031..acb325332 100644 --- a/release_notes.md +++ b/release_notes.md @@ -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) diff --git a/src/main/resources/props/sample.props.template b/src/main/resources/props/sample.props.template index 89b2d40b4..c5ae55f7a 100644 --- a/src/main/resources/props/sample.props.template +++ b/src/main/resources/props/sample.props.template @@ -203,6 +203,9 @@ webui_index_page_about_section_text =

\ Welcome to the API Sandbox powered by the Open Bank Project!
\

+# 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 diff --git a/src/main/scala/code/snippet/WebUI.scala b/src/main/scala/code/snippet/WebUI.scala index a4523dbc1..c00ef61a3 100644 --- a/src/main/scala/code/snippet/WebUI.scala +++ b/src/main/scala/code/snippet/WebUI.scala @@ -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") diff --git a/src/main/webapp/templates-hidden/default.html b/src/main/webapp/templates-hidden/default.html index bd7bd6dea..c981bf94f 100644 --- a/src/main/webapp/templates-hidden/default.html +++ b/src/main/webapp/templates-hidden/default.html @@ -61,6 +61,11 @@ Berlin 13359, Germany
+
+ This is the top text +
+ +