From 43c0518a41fc169b9fe6f1682e03cfa2fed38d68 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 6 Jan 2009 05:23:17 +0000 Subject: [PATCH] added documentation. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14188 71c3de6d-444a-0410-be80-ed276b4c234a --- .../WindowsInstallerLink/_restart.jelly | 2 +- core/src/main/resources/lib/form/submit.jelly | 11 +++-- .../main/resources/lib/layout/header.jelly | 5 +++ .../main/resources/lib/layout/layout.jelly | 43 ++++++++++++------- core/src/main/resources/lib/layout/yui.jelly | 16 ++++--- 5 files changed, 51 insertions(+), 26 deletions(-) diff --git a/core/src/main/resources/hudson/lifecycle/WindowsInstallerLink/_restart.jelly b/core/src/main/resources/hudson/lifecycle/WindowsInstallerLink/_restart.jelly index f05f1098e8..320325c35b 100644 --- a/core/src/main/resources/hudson/lifecycle/WindowsInstallerLink/_restart.jelly +++ b/core/src/main/resources/hudson/lifecycle/WindowsInstallerLink/_restart.jelly @@ -6,7 +6,7 @@

${%Please wait while Hudson is restarting}...

-

+

${%blurb}

diff --git a/core/src/main/resources/lib/form/submit.jelly b/core/src/main/resources/lib/form/submit.jelly index dbc37b0f9e..72000de18e 100644 --- a/core/src/main/resources/lib/form/submit.jelly +++ b/core/src/main/resources/lib/form/submit.jelly @@ -1,6 +1,11 @@ - + + Submit button themed by YUI. This should be always + used instead of the plain <input tag. + + + The text of the submit button. Something like "submit", "OK", etc. + + diff --git a/core/src/main/resources/lib/layout/header.jelly b/core/src/main/resources/lib/layout/header.jelly index 90f27a9dca..8da2dbb8f1 100644 --- a/core/src/main/resources/lib/layout/header.jelly +++ b/core/src/main/resources/lib/layout/header.jelly @@ -1,4 +1,9 @@ + + Header portion of the HTML page, that gets rendered into the <head> tag. + Multiple <l:header> elements can be specified, and can even come after + <l:main-panel>. + diff --git a/core/src/main/resources/lib/layout/layout.jelly b/core/src/main/resources/lib/layout/layout.jelly index 49e8ff2087..7b80b6a045 100644 --- a/core/src/main/resources/lib/layout/layout.jelly +++ b/core/src/main/resources/lib/layout/layout.jelly @@ -1,19 +1,32 @@ - + + Outer-most tag for a normal (non-AJAX) HTML rendering. + This is used with nested <side-panel> and <main-panel> + to form Hudson's basic HTML layout. + + + Title of the HTML page. Rendered into <title> tag. + + + If non-null, auto refresh is disabled on this page. + This is necessary for pages that include forms. + + + specify path that starts from "/" for loading additional CSS stylesheet. + path is interprted as relative to the context root. e.g., +
+      <l:layout css="/plugin/mysuperplugin/css/myneatstyle.css">
+      
+ + This was originally added to allow plugins to load their stylesheets, but + plugins should now do so by inserting <style> elements and/or <script> elements + in <l:header/> tag. +
+ + If given, this page is only made available to users that has the specified permission. + (The permission will be checked against the "it" object.) + +
diff --git a/core/src/main/resources/lib/layout/yui.jelly b/core/src/main/resources/lib/layout/yui.jelly index 34007f003f..d5d16d6fb7 100644 --- a/core/src/main/resources/lib/layout/yui.jelly +++ b/core/src/main/resources/lib/layout/yui.jelly @@ -1,10 +1,12 @@ - + + Load Yahoo UI module. + + YUI module name to load. + + + if loading beta module, use suffix='-beta' + +