Rewrote comment form controllers and templates in FreeMarker.

This commit is contained in:
rjy7 2010-05-19 19:50:56 +00:00
parent 31d4cdee40
commit 2646c9ff74
5 changed files with 7 additions and 4 deletions

View file

@ -4,6 +4,7 @@
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreeMarkerHttpServlet" %>
<%
// If the request was for a jsp rather than a servlet, we didn't get these yet.
String identity = (String) request.getAttribute("ftl_identity");
if (identity == null) {

View file

@ -114,3 +114,5 @@ caption { background: #eee; }
.last { margin-right:0; padding-right:0; }
.top { margin-top:0; padding-top:0; }
.bottom { margin-bottom:0; padding-bottom:0; }
.bold { font-weight: bold; }

View file

@ -25,5 +25,3 @@
</div>
<#-- SCRIPT TAGS SHOULD GO HERE -->
<#include "googleAnalytics.ftl">

View file

@ -22,7 +22,7 @@
<hr class="hidden" />
<div id="contentwrap">
<div id="content" <#if contentClass??> class="${contentClass}" </#if>>
<div id="content">
<#-- We don't do title here because some pages don't get a title, or it may not be the same as the <title> text.
<h2>${title}</h2> -->
${body}
@ -32,5 +32,7 @@
<#include "/components/footer.ftl">
</div> <!-- wrap -->
<#include "/components/scripts.ftl">
</body>
</html>