Little enhancements of the look of the main page.
The build date is included in the footer.
This commit is contained in:
23
build.xml
23
build.xml
@@ -1,6 +1,6 @@
|
|||||||
<project default="main" basedir=".">
|
<project default="main" basedir=".">
|
||||||
|
|
||||||
<target name="main" depends="clean,compile,war">
|
<target name="main" depends="clean,war">
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<taskdef name="junit"
|
<taskdef name="junit"
|
||||||
@@ -41,10 +41,27 @@
|
|||||||
<javac srcdir="src" destdir="content/WEB-INF/classes" debug="${debug}" classpathref="project-classpath" />
|
<javac srcdir="src" destdir="content/WEB-INF/classes" debug="${debug}" classpathref="project-classpath" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="war">
|
<target name="prepare" depends="init">
|
||||||
|
<!-- So that we can use the ${TSTAMP}, ${DSTAMP} -->
|
||||||
|
<tstamp />
|
||||||
|
<filter token="timestamp" value="${DSTAMP}"/>
|
||||||
|
<copy todir="${target}/root" filtering="true" >
|
||||||
|
<fileset dir="content">
|
||||||
|
<include name="*.jsp*"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
<copy todir="${target}/root" filtering="false" >
|
||||||
|
<fileset dir="content">
|
||||||
|
<exclude name="*.jsp*"/>
|
||||||
|
<exclude name="*-INF/**"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="war" depends="prepare, compile">
|
||||||
<war destfile="${target}/plantuml.war" webxml="content/WEB-INF/web.xml">
|
<war destfile="${target}/plantuml.war" webxml="content/WEB-INF/web.xml">
|
||||||
<classes dir="content/WEB-INF/classes" />
|
<classes dir="content/WEB-INF/classes" />
|
||||||
<fileset dir="content" excludes="WEB-INF/**"/>
|
<fileset dir="${target}/root" />
|
||||||
<lib dir="content/WEB-INF/lib" />
|
<lib dir="content/WEB-INF/lib" />
|
||||||
</war>
|
</war>
|
||||||
</target>
|
</target>
|
||||||
|
|||||||
4
content/footer.jspf
Normal file
4
content/footer.jspf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<div id="footer">
|
||||||
|
<p>PlantUML Server @timestamp@
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
@@ -34,7 +34,7 @@ if (decodedAttribute != null) {
|
|||||||
<body>
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<%-- PAGE TITLE --%>
|
<%-- PAGE TITLE --%>
|
||||||
<h1>PlantUMLServer</h1>
|
<h1>PlantUML Server</h1>
|
||||||
<p>This application provides a servlet which serves images created by <a href="http://plantuml.sourceforge.net">PlantUML</a>.</p>
|
<p>This application provides a servlet which serves images created by <a href="http://plantuml.sourceforge.net">PlantUML</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
@@ -60,8 +60,9 @@ if (decodedAttribute != null) {
|
|||||||
<p>You can use the following URL:
|
<p>You can use the following URL:
|
||||||
<br/>
|
<br/>
|
||||||
<a href="<%=imgurl %>"><code><img src="<%=imgurl %>" /></code></a>
|
<a href="<%=imgurl %>"><code><img src="<%=imgurl %>" /></code></a>
|
||||||
<br/><br/>
|
</p>
|
||||||
<img id="diagram" src="<%=imgurl %>" alt="PlantUML diagram"/>
|
<p id="diagram">
|
||||||
|
<img src="<%=imgurl %>" alt="PlantUML diagram"/>
|
||||||
</p>
|
</p>
|
||||||
<% } //endif %>
|
<% } //endif %>
|
||||||
</div>
|
</div>
|
||||||
@@ -70,7 +71,7 @@ if (decodedAttribute != null) {
|
|||||||
Bob -> Alice : hello
|
Bob -> Alice : hello
|
||||||
@enduml
|
@enduml
|
||||||
-->
|
-->
|
||||||
<%-- FOOTER
|
<%-- FOOTER --%>
|
||||||
<%@ include file="util/footer.jspf" %> --%>
|
<%@ include file="footer.jspf" %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
/* Font */
|
/* Font */
|
||||||
* {
|
* {
|
||||||
font-family: sans-serif;
|
font-family: arial,helvetica,sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
@@ -30,11 +30,26 @@
|
|||||||
|
|
||||||
/* XHTML tag */
|
/* XHTML tag */
|
||||||
#content code {
|
#content code {
|
||||||
font-family: monospace;
|
font-family: 'courier new',courier,monospace;
|
||||||
|
letter-spacing: -1pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Diagram */
|
/* Diagram */
|
||||||
#content img#diagram {
|
#content #diagram {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content #diagram img {
|
||||||
border: medium solid green;
|
border: medium solid green;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
#footer p {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #666;
|
||||||
|
font-size: 0.7em;
|
||||||
|
padding: 2px;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user