Permalink
Browse files

Removed the changelog links from the downloads page since they didn't

point to anything useful. Also corrected the name of the 'trainsients'
field in the Download domain class and made the release notes link
relative. Only works if application is deployed to root context.
  • Loading branch information...
1 parent 1a588c0 commit 6a22a302cf1323f59abcbbe520bb70f0dc651602 @pledbrook pledbrook committed Jul 30, 2010
View
8 grails.org/grails-app/domain/org/grails/downloads/Download.groovy
@@ -7,17 +7,17 @@ class Download implements Serializable{
String softwareName
String softwareVersion
int count
- Boolean betaRelease = false
+ Boolean betaRelease = false
List files
static hasMany = [files:DownloadFile]
- static trainsients = ['releaseNotes']
+ static transients = ['releaseNotes']
def getReleaseNotes() {
def config = ConfigurationHolder.getConfig()
def server = config.grails.serverURL
- return "$server/$softwareVersion+Release+Notes"
+ return "/${softwareVersion}+Release+Notes"
}
static constraints = {
@@ -29,4 +29,4 @@ class Download implements Serializable{
static mapping = {
count column: '`count`'
}
-}
+}
View
1 grails.org/grails-app/views/download/_download.gsp
@@ -4,7 +4,6 @@
<h3>Current ${download.key} release: ${binDownload?.softwareVersion}</h3>
<ul>
- <li><a href="http://jira.codehaus.org/browse/GRAILS?report=com.atlassian.jira.plugin.system.project:changelog-panel">Change Log</a></li>
<li><a href="${binDownload?.releaseNotes}">Release Notes</a></li>
</ul>

0 comments on commit 6a22a30

Please sign in to comment.