提交 faaf1853 编写于 作者: K kohsuke

Footer now includes a timestamp

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21305 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c5f4154c
......@@ -107,6 +107,7 @@ import java.util.List;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.Date;
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
import java.util.regex.Pattern;
......@@ -1152,6 +1153,10 @@ public class Functions {
return "";
}
public static Date getCurrentTime() {
return new Date();
}
private static final Pattern SCHEME = Pattern.compile("[a-z]+://.+");
......
......@@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:i="jelly:fmt">
<st:documentation>
Outer-most tag for a normal (non-AJAX) HTML rendering.
This is used with nested &lt;header>, &lt;side-panel>, and &lt;main-panel>
......@@ -237,6 +237,10 @@ THE SOFTWARE.
</table>
<table width="100%">
<tr><td id="footer">
<span style="padding-right:2em; color:gray">
${%Page generated}:
<i:formatDate value="${h.getCurrentTime()}" type="both" dateStyle="medium" timeStyle="medium"/>
</span>
<a href="http://hudson.dev.java.net/">
Hudson ver. ${h.version}
</a>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册