Skip to content

Instantly share code, notes, and snippets.

@leonardinius
Created January 10, 2011 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonardinius/773138 to your computer and use it in GitHub Desktop.
Save leonardinius/773138 to your computer and use it in GitHub Desktop.
#macro(h $text)$action.htmlEncode($text)#end
#macro(jh $text)$action.jsEncode($text)#end
#set($ajs="AJS.$")
#if ($action.hasAnyErrors())
<table class="jiraform maxWidth">
<tbody>
<tr>
<td colspan="2" class="formErrors">
<div class="errorArea">
<h4>Errors</h4>
<ul>
#foreach ($error in $action.getErrorMessages())
<li>#h($error)</li>
#end
#foreach ($error in $action.errors)
<li>#h($error)</li>
#end
</ul>
</div>
</td>
</tr>
</tbody>
</table>
#end
<script type="text/javascript">
(function(jq){
jq.namespace('xx.yy.zz.arguments');
xx.yy.zz.arguments.issueId = "#jh($action.issueObject.key)";
})($ajs);
</script>
<div align='center'>${action.renderer.render()}</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment