]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/frontpage
applied patch for http://rt.cpan.org/NoAuth/Bug.html?id=11236
[maypole.git] / templates / factory / frontpage
index 3da9ea3fe4c5e41887bec2423d00dc6bd120a62d..ac47269519d5a139266e903387f810278326f5bb 100644 (file)
@@ -1,37 +1,27 @@
-[% INCLUDE header %]
+[%#
+
+=head1 frontpage
 
-<h2> Main menu </h2>
+This is the frontpage for your Maypole application.
+It shows a list of all tables it is allowed to display.
 
-<TABLE BORDER="0" ALIGN="center" WIDTH="70%">
-<TR>
-<TD ALIGN="left">
-<P>
-<A HREF="/user/list"><IMG SRC="/images/users.png"> Administer users</A>
-</P>
-</TD>
-<TD ALIGN="right">
-<P>
-<A HREF="/computer/list"><IMG SRC="/images/computer.png"> Administer
-computers</A>
-</P>
-</TD>
-</TR>
+=cut
 
-<TR>
-<TD ALIGN="left">
-<P>
-<A HREF="/blog/"><IMG SRC="/images/blog.png"> House blog</A>
-</P>
-</TD>
-<TD ALIGN="right">
-<P>
-<A HREF="/phoneNumber/list"><IMG SRC="/images/phone.png"> Register
-phone calls</A>
-</P>
-</TD>
-</TR>
+#%]
+[% INCLUDE header %]
+<div id="title">
+    [% config.application_name || "A poorly configured Maypole application" %]
+</div>
+<div id="frontpage_list">
+<ul>
+[% FOR table = config.display_tables %]
+    <li>
+        <a href="[% base %]/[%table%]/list">List by [%table %]</a>
+    </li>      
+[% END %]
+</ul>
+</div>
 
-</TABLE>
+[% INCLUDE maypole %]
 
-<BR>
-[% INCLUDE small_blog %]
+[% INCLUDE footer %]