Add empty index page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 25 Jul 2012 19:06:28 +0000 (21:06 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 05:28:48 +0000 (07:28 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/IndexPage.java [new file with mode: 0644]
src/main/resources/templates/index [new file with mode: 0644]
src/main/webapp/WEB-INF/web.xml.template

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 (file)
index 0000000..c0de5d6
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.
+ */
+
+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 <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
+ */
+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 (file)
index 0000000..5b640c1
--- /dev/null
@@ -0,0 +1,5 @@
+<%include include/header title=="Artists">
+
+<h1>Index</h1>
+
+<%include include/footer>
\ No newline at end of file
index 75abb07..0e3d48c 100644 (file)
                        <param-value>net.pterodactylus.demoscenemusic.page.ArtistsPage</param-value>
                </init-param>
                <init-param>
+                       <param-name>index</param-name>
+                       <param-value>net.pterodactylus.demoscenemusic.page.IndexPage</param-value>
+               </init-param>
+               <init-param>
                        <param-name>login</param-name>
                        <param-value>net.pterodactylus.demoscenemusic.page.LoginPage</param-value>
                </init-param>