make the version in Download button dynamic

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@730440 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Musachy Barroso
2008-12-31 18:33:08 +00:00
parent 056fc323e5
commit 52a77d3656
2 changed files with 11 additions and 4 deletions
+5 -1
View File
@@ -78,6 +78,10 @@
<url>http://www.apache.org</url>
</organization>
<properties>
<currentVersion>${pom.version}</currentVersion>
</properties>
<profiles>
<profile>
<id>xwork</id>
@@ -190,7 +194,7 @@
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0-beta-5</version>
<version>2.0-beta-7</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
@@ -36,7 +36,9 @@
<a name="Welcome"/>
<div style="text-align:left;height:200px">
<a href="docs/home.html"><img src="images/struts2-merger2.png" alt="Struts 2 and WebWork merger" hspace="16" align="left"/></a>
<div style="float:left;margin-left:16px;margin-right:16px">
<a href="docs/home.html"><img src="images/struts2-merger2.png" alt="Struts 2 and WebWork merger"/></a>
</div>
<p>
<strong>Apache Struts 2 is an elegant, extensible framework</strong> for creating enterprise-ready Java web applications.
@@ -54,10 +56,11 @@
</div>
<div>
<table><tr><td>
<a href="http://struts.apache.org/download.cgi#struts213">
#set($aname=$currentVersion.replaceAll('\.', ""))
<a href="http://struts.apache.org/download.cgi#struts${aname}">
<div style="background:url(images/download.gif) no-repeat scroll 0%; width:200px; height:80px; float:left;position:relative;margin:5px">
<span style="top:15px;position:absolute;color:white;padding-left:10px">
<small>version 2.1.3</small>
<small>version ${currentVersion}</small>
<br />
<span style="font-weight: bold; font-size:140%">Download Now</span>
</span>