Skip to content

Commit 6e28aa7

Browse files
authored
Merge pull request jenkinsci#244 from timja/tables-to-divs
JENKINS-64536 Remove tabular form markup on system configuration page
2 parents 3fdbf0f + 6aa1361 commit 6e28aa7

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?jelly escape-by-default='true'?>
2+
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define">
3+
<!-- TODO remove and switch to div after baseline is 2.264 or newer -->
4+
<j:choose>
5+
<j:when test="${divBasedFormLayout}">
6+
<div>
7+
<d:invokeBody/>
8+
</div>
9+
</j:when>
10+
<j:otherwise>
11+
<table style="width:100%">
12+
<d:invokeBody/>
13+
</table>
14+
</j:otherwise>
15+
</j:choose>
16+
</j:jelly>

src/main/resources/org/jenkinsci/plugins/github/config/GitHubPluginConfig/config.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.cloudbees.jenkins.GitHubPushTrigger
44
import lib.FormTagLib
55

66
def f = namespace(FormTagLib);
7+
def g = namespace("/lib/github")
78

89
f.section(title: descriptor.displayName) {
910
f.entry(title: _("GitHub Servers"),
@@ -24,7 +25,7 @@ f.section(title: descriptor.displayName) {
2425

2526
if (GitHubPushTrigger.ALLOW_HOOKURL_OVERRIDE) {
2627
f.entry(title: _("Override Hook URL")) {
27-
table(width: "100%", style: "margin-left: 7px;") {
28+
g.blockWrapper {
2829
f.optionalBlock(title: _("Specify another hook URL for GitHub configuration"),
2930
inline: true,
3031
checked: instance.isOverrideHookUrl()) {

0 commit comments

Comments
 (0)