
templates.admin.sites.soy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jira-jenkins-plugin Show documentation
Show all versions of jira-jenkins-plugin Show documentation
JIRA Plugin to integrate Jenkins CI
/**
* Copyright (c) 2012-present Marvelution B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace JJI.Templates.Admin.Sites}
/**
*/
{template .headerButton}
{call aui.buttons.button}
{param id: 'add-site-button'/}
{param text: getText('add_site') /}
{/call}
{/template}
/**
* @param? id
* @param? type
* @param? name
* @param? rpcUrl
* @param? displayUrl
* @param? autoLink
* @param? user
*/
{template .siteDialog}
{call aui.dialog.dialog2}
{param removeOnHide: true /}
{param id: 'site-dialog' /}
{param size: 'medium' /}
{param titleText: $id ? getText('site.edit.header', $name) : getText('site.add.header') /}
{param content}
{call aui.form.form}
{param action: '#' /}
{param content}
{if $id}{/if}
{call aui.form.selectField}
{param id: 'type' /}
{param isRequired: true /}
{param value: $type ? $type : 'JENKINS' /}
{param options: [
[ 'text': getText('jenkins'), 'value': 'JENKINS' ],
[ 'text': getText('hudson'), 'value': 'HUDSON' ]
] /}
{param labelContent: getText('site.type') /}
{param descriptionText: getText('site.type.description') /}
{/call}
{call aui.form.textField}
{param id: 'name' /}
{param isRequired: true /}
{param value: $name /}
{param labelContent: getText('site.name') /}
{param descriptionText: getText('site.name.description') /}
{/call}
{call aui.form.urlField}
{param id: 'rpcUrl' /}
{param isRequired: true /}
{param value: $rpcUrl /}
{param labelContent: getText('site.rpc.url') /}
{param descriptionText: getText('site.rpc.url.description') /}
{/call}
{call aui.form.urlField}
{param id: 'displayUrl' /}
{param value: $displayUrl /}
{param labelContent: getText('site.display.url') /}
{param descriptionText: getText('site.display.url.description') /}
{/call}
{call aui.form.checkboxField}
{param legendContent: '' /}
{param fields: [[
'id': 'autoLink',
'labelText': getText('site.auto.link'),
'isChecked': $autoLink,
'value': 'true'
]] /}
{param descriptionText: getText('site.auto.link.description') /}
{/call}
{call aui.form.textField}
{param id: 'user' /}
{param value: $user /}
{param labelContent: getText('site.username') /}
{param descriptionText: getText('site.username.description') /}
{/call}
{if $id}
{call aui.form.checkboxField}
{param legendContent: '' /}
{param fields: [[
'id': 'changeToken',
'labelText': getText('site.change.token'),
'isChecked': false,
'value': 'true'
]] /}
{param descriptionText: getText('site.change.token.description') /}
{/call}
{/if}
{call aui.form.textField}
{param id: 'newtoken' /}
{param value: '' /}
{param labelContent: getText('site.token') /}
{param descriptionText: getText('site.token.description') /}
{param extraClasses: $id ? 'hidden' : '' /}
{/call}
{/param}
{/call}
{/param}
{param footerActionContent}
{call aui.buttons.button}
{param type: 'primary' /}
{param text: $id ? getText('save') : getText('create') /}
{/call}
{call aui.buttons.button}
{param type: 'link' /}
{param text: getText('close') /}
{/call}
{/param}
{/call}
{/template}
/**
* @param name
*/
{template .deleteSiteDialog}
{call aui.dialog.dialog2}
{param removeOnHide: true /}
{param id: 'site-delete-dialog' /}
{param size: 'medium' /}
{param extraClasses: 'aui-dialog2-warning' /}
{param titleText: getText('site.delete.header', $name) /}
{param content: getText('site.delete.message', $name) /}
{param footerActionContent}
{call aui.buttons.button}
{param type: 'primary' /}
{param text: getText('delete') /}
{/call}
{call aui.buttons.button}
{param type: 'link' /}
{param text: getText('close') /}
{/call}
{/param}
{/call}
{/template}
/**
* @param site the site
* @param? alttoken
*/
{template .siteContainer}
{call .siteHeader data="all" /}
{getText('enabled')}
{getText('job')}
{getText('last_build')}
{getText('sync_job')}
{getText('operations')}
{getText('collapsed_job_list', length($site.jobs))}
{foreach $job in $site.jobs}
{call .jobRow}
{param siteDisplayUrl: $site.displayUrl /}
{param job: $job /}
{/call}
{ifempty}
{call .noJobsRow /}
{/foreach}
{/template}
/**
* @param site the site
* @param? alttoken
*/
{template .siteHeader}
{call aui.page.pageHeader}
{param content}
{call aui.page.pageHeaderImage}
{param content}
{/param}
{/call}
{call aui.page.pageHeaderMain}
{param content}
{$site.name}
{/param}
{/call}
{call aui.page.pageHeaderActions}
{param content}
{/param}
{/call}
{/param}
{/call}
{/template}
/**
* @param siteDisplayUrl
* @param job
*/
{template .jobRow}
{$job.displayName}
{$job.lastBuild}
{/template}
/**
*/
{template .noJobsRow}
{getText('no_jobs')}
{/template}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy