2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
19 <script id="proxyConnectorsMain" type="text/x-jquery-tmpl">
20 <div class="page-header">
21 <h2>${$.i18n.prop('proxy-connectors.list')}</h2>
24 <ul id="proxy-connectors-view-tabs" class="nav nav-tabs">
25 <li id="proxy-connectors-view-tabs-li-grid" class="active">
26 <a data-toggle="tab" href="#proxy-connectors-view" id="proxy-connectors-view-tabs-a-network-proxies-grid">${$.i18n.prop('proxy-connectors.grid.tab.title')}</a>
28 <li id="proxy-connectors-view-tabs-li-edit">
29 <a data-toggle="tab" href="#proxy-connectors-edit" id="proxy-connectors-view-tabs-a-edit">${$.i18n.prop('add')}</a>
32 <div id="proxy-connectors-view-tabs-content" class="tab-content">
33 <div id="proxy-connectors-view" class="tab-pane active">
34 <table class="table table-striped table-bordered" id="proxyConnectorsTable"
35 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-proxy-connectors-grid',pageLinksId:'proxy-connectorsPagination'">
37 <div id="proxy-connectorsPagination"></div>
39 <div id="proxy-connectors-edit" class="tab-pane" data-bind='template: {name:"proxy-connector-edit-form-tmpl"}'></div>
44 <script id='ko-proxy-connectors-grid' type='text/x-jquery-tmpl'>
47 <th title="${$.i18n.prop('proxy-connectors.grid.managedrepo.title')}">
48 ${$.i18n.prop('proxy-connectors.grid.remoterepo.grid.header')}
50 <th title="${$.i18n.prop('proxy-connectors.grid.remoterepo.title')}">
51 ${$.i18n.prop('proxy-connectors.grid.remoterepo.grid.header')}
56 {{each(i, row) itemsOnCurrentPage()}}
58 {{var val = row.source()}}
62 <p>${getManagedRepository(val).name()}</p>
65 {{each(j, targetRepo) row.targetRepos()}}
66 {{var targetRepoId = targetRepo.targetRepoId()}}
68 <p>${targetRepoId}</p>
69 <p>${getRemoteRepository(targetRepoId).name()}</p>
70 <p>${getRemoteRepository(targetRepoId).url()}</p>
72 <a popover-title="${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}"
73 data-bind="event: { mouseover: function(){ showSettings(val,targetRepoId)},}"
74 id="proxy-connectors-grid-remoterepo-settings-edit-${val}-${targetRepoId}" href="#">
75 ${$.i18n.prop('edit')}
77 <div id="proxy-connectors-grid-remoterepo-settings-content-${val}-${targetRepoId}" style="display:none"></div>
86 <script id='proxy-connectors-remote-settings-popover-tmpl' type='text/x-jquery-tmpl'>
89 ${$.i18n.prop('proxy-connectors.remoterepo.settings.networkproxy')}: ${proxyId()}
91 ${$.i18n.prop('proxy-connectors.remoterepo.settings.networkproxy')}: ${$.i18n.prop('none')}
95 <th colspan="2">${$.i18n.prop('proxy-connector.policies')}</th>
98 {{each policies().entry}}
100 <td>${$value.key}</td>
101 <td>${$value.value}</td>
109 <script id="proxy-connector-edit-form-tmpl" type='text/x-jquery-tmpl'>
110 <form id="proxy-connector-edit-form" class="form-horizontal">
111 <fieldset id="remote-repository-edit-fieldset">
112 <div class="control-group">
113 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.network-proxy.id')}</label>
114 <div class="controls">
116 data-bind="options: proxyConnectorsViewModel.networkProxies, optionsText: 'id',optionsValue:'id',
117 value: proxyConnector.proxyId, optionsCaption: 'direct connection'"></select>
120 <div class="control-group">
121 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.managed.repository.id')}</label>
122 <div class="controls">
123 <select id="sourceRepoId"
124 data-bind="options: proxyConnectorsViewModel.managedRepositories, optionsText: 'id',optionsValue:'id',
125 value: proxyConnector.sourceRepoId"></select>
128 <div class="control-group">
129 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.remote.repository.id')}</label>
130 <div class="controls">
131 <select id="targetRepoId"
132 data-bind="options: proxyConnectorsViewModel.remoteRepositories, optionsText: 'id',optionsValue:'id',
133 value: proxyConnector.targetRepoId"></select>
136 <div class="control-group span5">
137 <table class="table">
139 <th colspan="2">${$.i18n.prop('proxy-connector.policies')}</th>
142 {{each proxyConnector.policies}}
145 <td>${$value.key}</td>
146 <td>${$value.value}</td>