|
1 | 1 | <?jelly escape-by-default='true'?> |
2 | 2 | <j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:f="/lib/form" xmlns:i="jelly:fmt"> |
3 | | - <l:layout norefresh="true" type="one-column" title="${%about(app.VERSION)}"> |
| 3 | + <l:layout norefresh="true" type="one-column" title="${%Configuration as Code}"> |
4 | 4 | <l:main-panel> |
5 | 5 |
|
6 | 6 | <div class="container-fluid"> |
|
27 | 27 | </f:form> |
28 | 28 |
|
29 | 29 | </j:otherwise> |
30 | | - <style> |
31 | | - td { |
32 | | - vertical-align: middle; |
33 | | - } |
34 | | - </style> |
35 | | - <f:form method="post" action="replace" name="replace"> |
36 | | - <h2>Replace configuration source with:</h2> |
37 | | - <f:entry title="${%Path or URL}" field="newSource" > |
38 | | - <f:textbox checkUrl="'checkNewSource?newSource='+this.value" style="width:32em;" /> |
39 | | - </f:entry> |
40 | | - <f:bottomButtonBar> |
41 | | - <f:submit name="replace" value="Apply new configuration"/> |
42 | | - </f:bottomButtonBar> |
43 | | - </f:form> |
44 | | - <h2>Actions</h2> |
45 | | - <f:form method="post" action="reload" name="reload"> |
46 | | - <f:submit name="reload" value="Reload existing configuration"/> |
47 | | - </f:form> |
48 | | - <f:form method="post" action="export" name="export"> |
49 | | - <f:submit name="export" value="${%Export Configuration}"/> |
50 | | - </f:form> |
51 | 30 | </j:choose> |
52 | 31 |
|
| 32 | + <style> |
| 33 | + td { |
| 34 | + vertical-align: middle; |
| 35 | + } |
| 36 | + </style> |
| 37 | + <f:form method="post" action="replace" name="replace"> |
| 38 | + <h2>Replace configuration source with:</h2> |
| 39 | + <f:entry title="${%Path or URL}" field="newSource" > |
| 40 | + <f:textbox checkUrl="'checkNewSource?newSource='+this.value" style="width:32em;" /> |
| 41 | + </f:entry> |
| 42 | + <f:bottomButtonBar> |
| 43 | + <f:submit name="replace" value="Apply new configuration"/> |
| 44 | + </f:bottomButtonBar> |
| 45 | + </f:form> |
| 46 | + <h2>Actions</h2> |
| 47 | + |
| 48 | + <f:form method="post" action="reload" name="reload"> |
| 49 | + <f:submit name="reload" value="Reload existing configuration"/> |
| 50 | + </f:form> |
| 51 | + <br/> |
| 52 | + <f:form method="post" action="export" name="export"> |
| 53 | + <f:submit name="export" value="${%Export Configuration}"/> |
| 54 | + <div class="alert alert-warning"> |
| 55 | + <img src="${rootURL}/images/16x16/warning.png"/> |
| 56 | + Export is not intended to offer a directly usable jenkins.yaml configuration. It can be used for inspiration |
| 57 | + writting your own, be aware export can be partial, or fail for some components. |
| 58 | + </div> |
| 59 | + </f:form> |
| 60 | + |
53 | 61 | <h2>${%Reference}</h2> |
54 | 62 | <dt> |
55 | 63 | <dl><a href="reference">${%Documentation}</a></dl> |
|
0 commit comments