Skip to content

Commit

Permalink
override demobanner
Browse files Browse the repository at this point in the history
  • Loading branch information
sree-cfa committed Jul 13, 2023
1 parent 34d48a1 commit 4db2fdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/resources/templates/fragments/demoBanner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div th:fragment="demoBanner"
th:if="${demoProfile}"
class="demo-banner"
th:utext="${demoText}">
</div>
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
<th:block th:replace="~{fragments/localeSelect :: translate_noscript}"></th:block>
</div>
</header>
<th:block th:replace="~{fragments/demoBanner :: demoBanner(demoText=#{demo.banner-text}, profile='demo')}"/>
<th:block th:replace="~{fragments/demoBanner :: demoBanner(demoText=#{demo.banner-text}, demoProfile=${@environment.getProperty('demo')})}"/>
</th:block>

0 comments on commit 4db2fdc

Please sign in to comment.