提交 bf44eeeb 编写于 作者: K kohsuke

Adding a few documentations to see how it works.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14119 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f0a8b41a
......@@ -5,12 +5,19 @@
If @field is specified:
no other mandatory fields.
in this case, name and value are inferred from field,
in this case, name and value are inferred from field,
and checkUrl is auto-generated if the check method is present.
Otherwise
@name and @value are mandatory.
-->
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
<st:documentation>
Generates an input field <tt>&lt;input type="text" ... /></tt>.
<st:attribute name="field">
Used for databinding. TBD.
</st:attribute>
</st:documentation>
<j:set var="checkUrl" value="${h.getCheckUrl(attrs.checkUrl,descriptor,attrs.field)}" />
<input class="setting-input ${h.ifThenElse(checkUrl!=null,'validated','')}"
name ="${h.defaulted(attrs.name,'_.'+attrs.field)}"
......
<!--
Attributes:
permission: the body is only rendered if permission is null, or the user has the permission
-->
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define" xmlns:s="jelly:stapler">
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define" xmlns:st="jelly:stapler">
<st:documentation>
Renders the body only if the current user has the specified permission
<st:attribute name="permission" use="required" type="Permission">
permission object to check. If this is null, the body will be also rendered.
</st:attribute>
</st:documentation>
<j:if test="${h.hasPermission(it, permission)}">
<d:invokeBody />
<d:invokeBody/>
</j:if>
</j:jelly>
\ No newline at end of file
<j:jelly xmlns:j="jelly:core" xmlns:s="jelly:stapler" xmlns:d="jelly:define">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
<st:documentation>
Generates the body as the main content part of a Hudson page.
</st:documentation>
<j:if test="${mode=='main-panel'}">
<a name="skip2content" />
<d:invokeBody />
......
<!--
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define" xmlns:st="jelly:stapler">
<st:documentation>
Creates a space for the right-hand side of the page.
This sticks to the right of the page even when the content overflows.
-->
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define">
</st:documentation>
<div style="position:absolute; top:60px; right:0px; padding-top:2em; padding-right:1em">
<d:invokeBody />
<d:invokeBody/>
</div>
</j:jelly>
\ No newline at end of file
Tag library that defines the basic layout of Hudson pages.
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册