Browse Source

Move H2 database console link to more appropriate place; add dev note

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.3-alpha
Pekka Helenius 4 years ago
parent
commit
fa1b75e824
2 changed files with 20 additions and 3 deletions
  1. +0
    -1
      bookstore/src/main/resources/templates/fragments/devusers.html
  2. +20
    -2
      bookstore/src/main/resources/templates/fragments/loginout.html

+ 0
- 1
bookstore/src/main/resources/templates/fragments/devusers.html View File

@ -59,7 +59,6 @@ h2consolepage = ${@environment.getProperty('spring.h2.console.path')}
</tr>
</tbody>
</table>
<a th:href="@{__${h2consolepage}__}">H2 database console</a>
</div>
</th:block>
</body>

+ 20
- 2
bookstore/src/main/resources/templates/fragments/loginout.html View File

@ -5,7 +5,23 @@
<link type="text/css" rel="stylesheet" href="../../static/css/bookstore.css" />
<link type="text/css" rel="stylesheet" href="../../static/css/bootstrap.min.css" />
</head>
<body>
<!--/* TODO: use proper and scalable fragment HTML replacement for this element */-->
<body th:with="
indexpage = ${@environment.getProperty('page.url.index')},
listpage = ${@environment.getProperty('page.url.list')},
addpage = ${@environment.getProperty('page.url.add')},
deletepage = ${@environment.getProperty('page.url.delete')},
editpage = ${@environment.getProperty('page.url.edit')},
loginpage = ${@environment.getProperty('page.url.login')},
logoutpage = ${@environment.getProperty('page.url.logout')},
apirefpage = ${@environment.getProperty('page.url.apiref')},
jsonpage = ${@environment.getProperty('page.url.json')},
jsonbookpage = ${@environment.getProperty('page.url.json.book')},
jsonlistpage = ${@environment.getProperty('page.url.json.list')},
h2consolepage = ${@environment.getProperty('spring.h2.console.path')}
">
<th:block th:fragment="loginout">
<div id="bookstore-loginout">
@ -82,7 +98,9 @@
<!--/*
** END: login elements **
*/-->
<div style="margin: 10px 0;">
<a th:href="@{__${h2consolepage}__}">H2 database console (dev phase only)</a>
</div>
</div>
</th:block>
</body>

Loading…
Cancel
Save