提交 5ce130c0 编写于 作者: M mindless

[FIXED HUDSON-5471] Use fixed-width font in textarea for shell/batch build steps.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27096 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f8a1680f
<!--
The MIT License
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......@@ -25,6 +25,6 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="${%Command}"
description="${%description(rootURL)}">
<f:textarea name="batchFile" value="${instance.command}"/>
<f:textarea name="batchFile" value="${instance.command}" class="fixed-width" />
</f:entry>
</j:jelly>
\ No newline at end of file
</j:jelly>
<!--
The MIT License
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......@@ -24,6 +24,6 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="${%Command}" description="${%description(rootURL)}">
<f:textarea name="shell" value="${instance.command}" />
<f:textarea name="shell" value="${instance.command}" class="fixed-width" />
</f:entry>
</j:jelly>
\ No newline at end of file
</j:jelly>
<!--
The MIT License
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Johnathon Jamison, Yahoo! Inc.
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Johnathon Jamison, Yahoo! Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......@@ -52,11 +52,11 @@ THE SOFTWARE.
<f:prepareDatabinding />
<textarea id="${attrs.id}" style="${attrs.style}"
name ="${attrs.name ?: '_.'+attrs.field}"
class="setting-input ${attrs.checkUrl!=null?'validated':''}"
class="setting-input ${attrs.checkUrl!=null?'validated':''} ${attrs.class}"
checkUrl="${attrs.checkUrl}"
rows="${h.determineRows(attrs.value)}">
<st:out value="${attrs.value ?: instance[attrs.field]}" />
</textarea>
<!-- resize handle -->
<div class="textarea-handle"/>
</j:jelly>
\ No newline at end of file
</j:jelly>
......@@ -45,6 +45,10 @@ dt {
font-weight: bold;
}
.fixed-width {
font-family: Courier, monospace;
}
.center {
text-align: center;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册