From 7685e32a7bd457b50cb5e16202bba61968bfd2ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 25 Jul 2012 21:06:28 +0200 Subject: [PATCH] Add empty index page. --- .../demoscenemusic/page/IndexPage.java | 45 ++++++++++++++++++++++ src/main/resources/templates/index | 5 +++ src/main/webapp/WEB-INF/web.xml.template | 4 ++ 3 files changed, 54 insertions(+) create mode 100644 src/main/java/net/pterodactylus/demoscenemusic/page/IndexPage.java create mode 100644 src/main/resources/templates/index diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/IndexPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/IndexPage.java new file mode 100644 index 0000000..c0de5d6 --- /dev/null +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/IndexPage.java @@ -0,0 +1,45 @@ +/* + * DemosceneMusic - IndexPage.java - Copyright © 2012 David Roden + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.pterodactylus.demoscenemusic.page; + +import net.pterodactylus.demoscenemusic.core.Core; +import net.pterodactylus.util.template.Template; +import net.pterodactylus.util.template.TemplateContextFactory; + +/** + * Index page. + * + * @author David ‘Bombe’ Roden + */ +public class IndexPage extends BasePage { + + /** + * Creates a new index page. + * + * @param core + * The core + * @param templateContextFactory + * The template context factory + * @param template + * The template to render + */ + public IndexPage(Core core, TemplateContextFactory templateContextFactory, Template template) { + super(core, templateContextFactory, template, "index"); + } + +} diff --git a/src/main/resources/templates/index b/src/main/resources/templates/index new file mode 100644 index 0000000..5b640c1 --- /dev/null +++ b/src/main/resources/templates/index @@ -0,0 +1,5 @@ +<%include include/header title=="Artists"> + +

Index

+ +<%include include/footer> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml.template b/src/main/webapp/WEB-INF/web.xml.template index 75abb07..0e3d48c 100644 --- a/src/main/webapp/WEB-INF/web.xml.template +++ b/src/main/webapp/WEB-INF/web.xml.template @@ -40,6 +40,10 @@ net.pterodactylus.demoscenemusic.page.ArtistsPage + index + net.pterodactylus.demoscenemusic.page.IndexPage + + login net.pterodactylus.demoscenemusic.page.LoginPage -- 2.7.4