}\r
\r
// define the summary and commit urls\r
+def repo = + repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/'))\r
def summaryUrl\r
def commitUrl\r
-if (gitblit.getBoolean(Keys.web.mountParameters, true)) {\r
- summaryUrl = url + '/summary/' + repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/'))\r
- commitUrl = url + '/commit/'\r
+if (gitblit.getBoolean(Keys.web.mountParameters, true)) { \r
+ summaryUrl = url + "/summary/$repo"\r
+ commitUrl = url + "/commit/$repo/"\r
} else {\r
- summaryUrl = url + '/summary?r=' + repository.name\r
- commitUrl = url + '/commit?h='\r
+ summaryUrl = url + "/summary?r=$repo"\r
+ commitUrl = url + "/commit?r=$repo&h="\r
}\r
\r
// construct a simple text summary of the changes contained in the push\r