Browse Source

BookStorePages: Add resource pages

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
d12450bffe
7 changed files with 20 additions and 13 deletions
  1. +8
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStorePages.java
  2. +2
    -2
      bookstore/src/main/resources/templates/apiref.html
  3. +2
    -2
      bookstore/src/main/resources/templates/bookadd.html
  4. +2
    -2
      bookstore/src/main/resources/templates/bookedit.html
  5. +2
    -2
      bookstore/src/main/resources/templates/booklist.html
  6. +2
    -2
      bookstore/src/main/resources/templates/error.html
  7. +2
    -2
      bookstore/src/main/resources/templates/statsref.html

+ 8
- 1
bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStorePages.java View File

@ -51,7 +51,10 @@ public class BookStorePages {
RESTCATEGORIES, RESTCATEGORIES,
RESTUSERS, RESTUSERS,
RESTROLES, RESTROLES,
RESTUSERROLES
RESTUSERROLES,
RESCSS,
RESJS,
RESIMAGES
; ;
@PostConstruct @PostConstruct
@ -89,6 +92,10 @@ public class BookStorePages {
this.RESTROLES = env.getProperty("page.url.restapi.roles"); this.RESTROLES = env.getProperty("page.url.restapi.roles");
this.RESTUSERROLES = env.getProperty("page.url.restapi.userroles"); this.RESTUSERROLES = env.getProperty("page.url.restapi.userroles");
this.RESCSS = env.getProperty("page.url.resources.css");
this.RESJS = env.getProperty("page.url.resources.js");
this.RESIMAGES = env.getProperty("page.url.resources.images");
} }
} }


+ 2
- 2
bookstore/src/main/resources/templates/apiref.html View File

@ -3,8 +3,8 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{../css/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{../css/bootstrap.min.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{__${@Pages.RESCSS}__/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{__${@Pages.RESCSS}__/bootstrap.min.css}" />
<title th:text="${#messages.msgOrNull('page.title.browser.apiref')} ?: 'page.title.browser.apiref'"> <title th:text="${#messages.msgOrNull('page.title.browser.apiref')} ?: 'page.title.browser.apiref'">
page.title.browser.apiref page.title.browser.apiref


+ 2
- 2
bookstore/src/main/resources/templates/bookadd.html View File

@ -3,8 +3,8 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{../css/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{../css/bootstrap.min.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{__${@Pages.RESCSS}__/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{__${@Pages.RESCSS}__/bootstrap.min.css}" />
<title th:text="${#messages.msgOrNull('page.title.browser.add')} ?: 'page.title.browser.add'"> <title th:text="${#messages.msgOrNull('page.title.browser.add')} ?: 'page.title.browser.add'">
page.title.browser.add page.title.browser.add


+ 2
- 2
bookstore/src/main/resources/templates/bookedit.html View File

@ -3,8 +3,8 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{../css/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{../css/bootstrap.min.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{__${@Pages.RESCSS}__/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{__${@Pages.RESCSS}__/bootstrap.min.css}" />
<title th:text="${#messages.msgOrNull('page.title.browser.edit')} ?: 'page.title.browser.edit'"> <title th:text="${#messages.msgOrNull('page.title.browser.edit')} ?: 'page.title.browser.edit'">
page.title.browser.edit page.title.browser.edit


+ 2
- 2
bookstore/src/main/resources/templates/booklist.html View File

@ -39,8 +39,8 @@ Idea of the following syntax used in this and other HTML document:
*/--> */-->
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{../css/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{../css/bootstrap.min.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{__${@Pages.RESCSS}__/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{__${@Pages.RESCSS}__/bootstrap.min.css}" />
<title th:text="${#messages.msgOrNull('page.title.browser.list')} ?: 'page.title.browser.list'"> <title th:text="${#messages.msgOrNull('page.title.browser.list')} ?: 'page.title.browser.list'">
page.title.browser.list page.title.browser.list


+ 2
- 2
bookstore/src/main/resources/templates/error.html View File

@ -3,8 +3,8 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{../css/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{../css/bootstrap.min.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{__${@Pages.RESCSS}__/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{__${@Pages.RESCSS}__/bootstrap.min.css}" />
<title th:text="${#messages.msgOrNull('page.title.browser.error')} ?: 'page.title.browser.error'"> <title th:text="${#messages.msgOrNull('page.title.browser.error')} ?: 'page.title.browser.error'">
page.title.browser.error page.title.browser.error


+ 2
- 2
bookstore/src/main/resources/templates/statsref.html View File

@ -3,8 +3,8 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{../css/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{../css/bootstrap.min.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{__${@Pages.RESCSS}__/bookstore.css}" />
<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{__${@Pages.RESCSS}__/bootstrap.min.css}" />
<title th:text="${#messages.msgOrNull('page.title.browser.statsref')} ?: 'page.title.browser.statsref'"> <title th:text="${#messages.msgOrNull('page.title.browser.statsref')} ?: 'page.title.browser.statsref'">
page.title.browser.statsref page.title.browser.statsref


Loading…
Cancel
Save