Skip to content

Commit

Permalink
[JENKINS-64147] Forwards compat with table-to-div (#528)
Browse files Browse the repository at this point in the history
* Forwards compat with table-to-div

* Add missing taglib file

Co-authored-by: res0nance <[email protected]>
Co-authored-by: Tim Jacomb <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2020
1 parent f21a54f commit dac2e7e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/hudson/plugins/ec2/EC2Tag/config.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<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">
<table width="100%">
<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" xmlns:ec="/lib/ec2">
<ec:blockWrapper>
<f:entry title="${%Name}" field="name">
<f:textbox />
</f:entry>
Expand All @@ -37,5 +37,5 @@ THE SOFTWARE.
<f:repeatableDeleteButton />
</div>
</f:entry>
</table>
</ec:blockWrapper>
</j:jelly>
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<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" >
<table width="100%">
<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" xmlns:ec="/lib/ec2">
<ec:blockWrapper>

<f:entry title="${%Description}" field="description">
<f:textbox />
Expand Down Expand Up @@ -214,5 +214,5 @@ THE SOFTWARE.
</div>
</f:entry>

</table>
</ec:blockWrapper>
</j:jelly>
16 changes: 16 additions & 0 deletions src/main/resources/lib/ec2/blockWrapper.jelly
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define">
<!-- TODO remove and switch to div after baseline is 2.264 or newer -->
<j:choose>
<j:when test="${divBasedFormLayout}">
<div>
<d:invokeBody/>
</div>
</j:when>
<j:otherwise>
<table style="width:100%">
<d:invokeBody/>
</table>
</j:otherwise>
</j:choose>
</j:jelly>
Empty file.

0 comments on commit dac2e7e

Please sign in to comment.