-
Notifications
You must be signed in to change notification settings - Fork 749
Adjust for experimental Manage Jenkins UI #2756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
47b89de
c1c6ed8
f24566d
83bf99c
710df49
484b020
4acf2a6
40523b6
bebea19
7f3dfb2
c3c98d2
5cb2ba4
3b955d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,93 @@ | ||
| <?jelly escape-by-default='true'?> | ||
| <j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:st="jelly:stapler"> | ||
| <l:layout type="one-column" title="${%Configuration as Code}" permissions="${app.MANAGE_AND_SYSTEM_READ}"> | ||
| <l:main-panel> | ||
| <l:app-bar title="${%Configuration as Code}"> | ||
| <j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:f="/lib/form" xmlns:i="jelly:fmt" | ||
| xmlns:t="/lib/hudson"> | ||
| <l:settings-subpage permissions="${app.MANAGE_AND_SYSTEM_READ}" header="${null}"> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why pass header=null? you can just pass your own header through with a
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dialog wasn't working in the |
||
| <l:dialog title="${%Apply Configuration as Code file}" hash="new"> | ||
| <l:isAdmin> | ||
| <f:form method="post" action="replace" name="replace"> | ||
| <input type="hidden" name="${h.getCrumbRequestField()}" value="${h.getCrumb(request2)}"/> | ||
| <f:entry title="${%Path or URL}" field="newSource" class="jenkins-form-item--small"> | ||
| <f:textbox checkUrl="checkNewSource" checkDependsOn="newSource"/> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @janfaracik most likely the cause of the ATH failure -
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| </f:entry> | ||
| <f:submit name="replace" value="${%Apply configuration}"/> | ||
| </f:form> | ||
| </l:isAdmin> | ||
| </l:dialog> | ||
|
|
||
| <l:app-bar title="${it.displayName}"> | ||
| <j:if test="${!empty it.sources}"> | ||
| <button id="btn-open-apply-configuration" class="jenkins-button" | ||
| data-type="dialog-opener" | ||
| data-dialog-id="${dialogId}"> | ||
| <l:icon src="symbol-add"/> | ||
| ${%Apply configuration} | ||
| </button> | ||
| </j:if> | ||
|
|
||
| <f:form method="post" action="reload" name="reload"> | ||
| <l:hasAdministerOrManage> | ||
| <f:submit icon="symbol-refresh" primary="false" name="reload" | ||
| value="${%Reload existing configuration}"/> | ||
| </l:hasAdministerOrManage> | ||
| </f:form> | ||
| <f:form method="post" action="viewExport" name="viewExport"> | ||
| <l:hasPermission permission="${app.SYSTEM_READ}"> | ||
| <f:submit primary="false" name="viewExport" value="${%Export configuration}"/> | ||
| <button name="viewExport" class="jenkins-button"> | ||
| ${%Export configuration} | ||
| </button> | ||
| </l:hasPermission> | ||
| </f:form> | ||
|
|
||
| <j:if test="${!empty it.sources}"> | ||
| <f:form method="post" action="reload" name="reload"> | ||
| <l:hasAdministerOrManage> | ||
| <button name="reload" tooltip="${%Reload configuration}" class="jenkins-button"> | ||
| <l:icon src="symbol-refresh"/> | ||
| </button> | ||
| </l:hasAdministerOrManage> | ||
| </f:form> | ||
| </j:if> | ||
| </l:app-bar> | ||
|
|
||
| <p class="jenkins-page-description"> | ||
| ${it.description} | ||
| </p> | ||
|
|
||
| <j:choose> | ||
| <j:when test="${empty it.sources}"> | ||
| <p>${%Controller has no configuration as code file set.}</p> | ||
| <l:notice icon="symbol-logo plugin-configuration-as-code" | ||
| title="${%Controller has no configuration as code file set}"> | ||
| <l:isAdmin> | ||
| <button id="btn-open-apply-configuration" class="jenkins-button" | ||
| data-type="dialog-opener" | ||
| data-dialog-id="${dialogId}"> | ||
| ${%Setup configuration} | ||
| </button> | ||
| </l:isAdmin> | ||
| </l:notice> | ||
| </j:when> | ||
| <j:otherwise> | ||
| ${%Configuration loaded from :} | ||
| <ul> | ||
| <j:forEach var="source" items="${it.sources}"> | ||
| <li>${source}</li> | ||
| </j:forEach> | ||
| </ul> | ||
|
|
||
| <p>${%Last time applied:} <i:formatDate value="${it.lastTimeLoaded}" type="both" dateStyle="medium" timeStyle="long"/></p> | ||
| <f:section title="${%Configurations}"> | ||
| <p class="jenkins-section__description"> | ||
| ${%Last time applied:} | ||
| <i:formatDate value="${it.lastTimeLoaded}" type="both" dateStyle="medium" | ||
| timeStyle="long"/> | ||
| </p> | ||
|
|
||
| <ul class="jenkins-instructions"> | ||
| <j:forEach var="source" items="${it.sources}"> | ||
| <li style="font-family: var(--font-family-mono)">${source}</li> | ||
| </j:forEach> | ||
| </ul> | ||
| </f:section> | ||
| </j:otherwise> | ||
| </j:choose> | ||
|
|
||
| <l:isAdmin> | ||
| <f:form method="post" action="replace" name="replace"> | ||
| <h2>${%Replace configuration source with:}</h2> | ||
| <f:entry title="${%Path or URL}" field="newSource" class="jenkins-form-item--small" > | ||
| <f:textbox checkUrl="checkNewSource" checkDependsOn="newSource"/> | ||
| </f:entry> | ||
| <f:block> | ||
| <f:submit name="replace" value="${%Apply new configuration}"/> | ||
| </f:block> | ||
| </f:form> | ||
| </l:isAdmin> | ||
|
|
||
| <l:hasPermission permission="${app.SYSTEM_READ}"> | ||
| <h2>${%Reference}</h2> | ||
| <dt> | ||
| <dl><a href="reference">${%Documentation}</a></dl> | ||
| <dl><a href="schema">${%JSON schema}</a></dl> | ||
| </dt> | ||
| <f:section title="${%Reference}"> | ||
| <dt> | ||
| <dl> | ||
| <a href="reference">${%Documentation}</a> | ||
| </dl> | ||
| <dl> | ||
| <a href="schema">${%JSON schema}</a> | ||
| </dl> | ||
| </dt> | ||
| </f:section> | ||
| </l:hasPermission> | ||
| </l:main-panel> | ||
| </l:layout> | ||
| </l:settings-subpage> | ||
| </j:jelly> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,26 @@ | ||
| <?jelly escape-by-default='true'?> | ||
| <j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:st="jelly:stapler" xmlns:p="/prism" | ||
| xmlns:f="/lib/form"> | ||
| <l:layout type="one-column" title="${%Exported configuration}"> | ||
| <l:breadcrumb title="${%Exported configuration}" /> | ||
| <l:main-panel> | ||
| <st:adjunct includes="io.jenkins.plugins.casc.assets.viewExport" /> | ||
|
|
||
| <l:app-bar title="${%Exported configuration}"> | ||
| <f:form method="post" action="export" name="export"> | ||
| <f:submit icon="symbol-download" primary="false" name="export" value="${%Download}"/> | ||
| </f:form> | ||
| </l:app-bar> | ||
| <j:set var="header"> | ||
| <l:view> | ||
| <l:app-bar title="${viewExport.displayName}"> | ||
| <f:form method="post" action="export" name="export"> | ||
| <f:submit icon="symbol-download" primary="false" name="export" value="${%Download}"/> | ||
| </f:form> | ||
| </l:app-bar> | ||
| </l:view> | ||
| </j:set> | ||
|
|
||
| <l:settings-subpage includeBreadcrumb="true" header="${header}" managementLink="${viewExport}" noDefer="true"> | ||
| <st:adjunct includes="io.jenkins.plugins.casc.assets.viewExport" /> | ||
|
|
||
| <div class="jenkins-alert jenkins-alert-info"> | ||
| ${%exportWarning} | ||
| </div> | ||
|
|
||
| <p:prism configuration="${it.prismConfiguration}" /> | ||
| <pre> | ||
| <code class="language-yaml">${export}</code> | ||
| <code class="language-yaml">${viewExport.urlName}</code> | ||
| </pre> | ||
| </l:main-panel> | ||
| </l:layout> | ||
| </l:settings-subpage> | ||
| </j:jelly> |
Uh oh!
There was an error while loading. Please reload this page.