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="repositoriesMain" type="text/html">
20 <div class="page-header">
21 <h2><img src="images/system-file-manager-32-32.png"/>${$.i18n.prop('administration.repositories')}</h2>
24 <ul id="repositories-tabs" class="nav nav-tabs">
26 <a data-toggle="tab" href="#managed-repositories-content">${$.i18n.prop('managedrepositories.grid.head')}</a>
29 <a data-toggle="tab" href="#remote-repositories-content">${$.i18n.prop('remoterepositories.grid.head')}</a>
32 <div class="tab-content">
33 <div id="managed-repositories-content" class="tab-pane active">
34 <ul id="managed-repositories-pills" class="nav nav-pills">
35 <li class="active" id="managed-repositories-view-li">
36 <a data-toggle="tab" href="#managed-repositories-view" id="managed-repositories-view-a">${$.i18n.prop('managedrepositories.grid.tab.title')}</a>
38 <li id="managed-repository-edit-li">
39 <a data-toggle="tab" href="#managed-repository-edit">${$.i18n.prop('add')}</a>
42 <div id="managed-repositories-tabs-content" class="pill-content">
43 <div id="managed-repositories-view" class="pill-pane active">
44 <div id="managed-repositories-bulk-save-btn" data-bind='template:{name:"managed-repositories-bulk-save-tmpl"}'></div>
45 <table class="table table-striped table-bordered" id="managed-repositories-table"
46 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_managed-repositoriesGrid',pageLinksId:'managed-repositoriesPagination',data:'managedRepositories'">
48 <div id="managed-repositoriesPagination"></div>
49 <div id="managed-repositories-pom-snippet"></div>
51 <div id="managed-repository-edit" class="pill-pane" data-bind='template: {name:"managed-repository-edit-tmpl"}'>
57 <div id="remote-repositories-content" class="tab-pane">
58 <ul id="remote-repositories-pills" class="nav nav-pills">
59 <li class="active" id="remote-repositories-view-li">
60 <a data-toggle="tab" href="#remote-repositories-view" id="remote-repositories-view-a">${$.i18n.prop('remoterepositories.grid.tab.title')}</a>
62 <li id="remote-repository-edit-li">
63 <a data-toggle="tab" href="#remote-repository-edit">${$.i18n.prop('add')}</a>
66 <div id="remote-repositories-tabs-content" class="pill-content">
67 <div id="remote-repositories-view" class="pill-pane active">
68 <div id="remote-repositories-bulk-save-btn" data-bind='template:{name:"remote-repositories-bulk-save-tmpl"}'></div>
69 <table class="table table-striped table-bordered" id="remote-repositories-table"
70 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_remote-repositoriesGrid',pageLinksId:'remote-repositoriesPagination',data:'remoteRepositories'">
72 <div id="remote-repositoriesPagination"></div>
74 <div id="remote-repository-edit" class="pill-pane" data-bind='template: {name:"remote-repository-edit-tmpl"}'>
81 <script id='ko_managed-repositoriesGrid' type='text/html'>
84 {{each(i, columnDefinition) columns}}
85 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
89 <!--th title="${$.i18n.prop('managedrepository.scan.index')}">${$.i18n.prop('managedrepository.scan.grid.header')}</th-->
90 <th>${$.i18n.prop('managedrepository.actions')}</th>
91 <th>${$.i18n.prop('edit')}</th>
92 <th>${$.i18n.prop('delete')}</th>
93 <th>${$.i18n.prop('modified')}</th>
94 <!--th>${$.i18n.prop('description')}</th-->
95 <th>${$.i18n.prop('managed.repository.rss.header')}</th>
96 <th title="${$.i18n.prop('managedrepository.stats')}">${$.i18n.prop('managedrepository.stats.grid.header')}</th>
97 <!--th title="${$.i18n.prop('managedrepository.scan.directories')}">${$.i18n.prop('managedrepository.scan.directories.grid.header')}</th-->
101 {{each(i, row) itemsOnCurrentPage()}}
102 <tr data-bind="css:{ 'modified': row.modified()}">
103 {{each(j, columnDefinition) columns}}
104 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
107 {{if row.releases() == true}}
108 <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('release.included')}"/>
110 <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('release.notincluded')}"/>
115 {{if row.snapshots() == true}}
116 <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('snapshots.included')}"/>
118 <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('snapshots.notincluded')}"/>
122 <div class="btn-group">
123 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Actions<span class="caret"></span> </a>
124 <ul class="dropdown-menu">
126 <a href="#" data-bind="click: function(){ scanNow(row) }">
127 <span class="btn btn-success">
128 <i class="icon-refresh icon-white"></i>
130 ${$.i18n.prop('managedrepository.scan.grid.header')}
134 <a href="#" data-bind="click: function(){directoriesScan(row)}">
135 <span class="btn btn-warning">
136 <i class="icon-wrench icon-white"></i>
138 ${$.i18n.prop('managedrepository.scan.directories.grid.header')}
142 <a href="#" data-bind="click: function(){ showPomSnippet(row) }">
143 <span class="btn btn-info">
144 <i class="icon-user icon-white"></i>
146 ${$.i18n.prop('managedrepository.pomsnippet')}
150 {{if row.stageRepoNeeded()}}
155 <!-- todo check archiva-merge-repository operation -->
156 <a href="#" data-bind="click: function(){ mergeRepo(row) }">
157 <span class="btn btn-info">
158 <i class="icon-share icon-white"></i>
160 ${$.i18n.prop('managedrepository.mergerepo')}
167 <a href="#" data-bind="click: function(){ editManagedRepository(row) }">
168 <span class="btn btn-primary">
169 <i class="icon-pencil icon-white"/>
174 <a href="#" data-bind="click: function(){ removeManagedRepository(row) }">
175 <span class="btn btn-danger">
176 <i class="icon-trash icon-white"/>
180 {{if row.modified()}}
182 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateManagedRepository(row) }">${$.i18n.prop('save')}</a>
188 <a href="${row.feedsUrl}"><img src="images/atom.gif" alt="" title="${$.i18n.prop('managedpository.feeds')} ${row.name()}"/></a>
191 {{if row.description()}}
192 <a class="btn btn-warning btn-mini popover-doc" id="managedrepo-description-help"
193 data-content="${row.description()}" data-title="${$.i18n.prop('description')}"
194 data-placement="left">
195 <i class="icon-question-sign icon-white"></i>
199 <td id="managedrepository-stats-${row.id()}">
200 <img src="images/utilities-system-monitor-22-22.png" data-original-title="${$.i18n.prop('managedrepository.stats')}"
201 data-bind="event: { mouseover: function(){ showStats(row) }, mouseout: function(){ hideStats(row) },}"
202 id="managedrepository-stats-img-${row.id()}"/>
210 <script id="managed-repository-edit-tmpl" type='text/html'>
211 <form id="managed-repository-edit-form" class="well form-horizontal">
212 <fieldset id="managed-repository-edit-fieldset">
213 <div class="control-group">
214 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
215 <div class="controls">
217 <span class="uneditable-input">${$data.managedRepository.id}</span>
219 <input type="text" class="input-xlarge required" id="id" name="id" size="50"
220 data-bind="value: managedRepository.id,css:{'uneditable-input': update},readonly:update"/>
224 <div class="control-group">
225 <label class="control-label" for="name">${$.i18n.prop('name')}</label>
226 <div class="controls">
227 <input type="text" class="input-xlarge required" id="name" name="name" size="50"
228 data-bind="value: managedRepository.name"/>
231 <div class="control-group">
232 <label class="control-label" for="location">${$.i18n.prop('directory')}</label>
233 <div class="controls">
234 <input type="text" class="input-xxlarge required" id="location" name="location" size="50" data-bind="value: managedRepository.location"/>
237 <div class="control-group">
238 <label class="control-label" for="indexDirectory">${$.i18n.prop('index.directory')}</label>
239 <div class="controls">
240 <input type="text" class="input-xxlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: managedRepository.indexDirectory"/>
243 <div class="control-group">
244 <label class="control-label" for="layout">${$.i18n.prop('type')}</label>
245 <div class="controls">
246 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: managedRepository.layout"/>
249 <div class="control-group">
250 <label class="control-label" for="cronExpression">${$.i18n.prop('cronExpression')}</label>
251 <div class="controls">
252 <input type="text" id="cronExpression" class="required" name="cronExpression" size="40" data-bind="value: managedRepository.cronExpression"/>
253 <a class="btn btn-warning btn-mini popover-doc" id="cronExpression-info-button"
254 data-original-title="${$.i18n.prop('cronExpression.help.title')}"
255 data-content="${$.i18n.prop('cronExpression.help.content')}">
256 <i class="icon-question-sign icon-white"></i>
260 <div class="control-group">
261 <label class="control-label" for="daysOlder">${$.i18n.prop('daysOlder')}</label>
262 <div class="controls">
263 <input type="text" id="daysOlder" class="digits" name="daysOlder" size="5" data-bind="value: managedRepository.daysOlder"/>
266 <div class="control-group">
267 <label class="control-label" for="retentionCount">${$.i18n.prop('retentionCount')}</label>
268 <div class="controls">
269 <input type="text" id="retentionCount" name="retentionCount" size="5" data-bind="value: managedRepository.retentionCount"/>
272 <div class="control-group">
273 <label class="control-label" for="daysOlder">${$.i18n.prop('description')}</label>
274 <div class="controls">
275 <textarea rows="3" id="description" name="description" data-bind="value: managedRepository.description"></textarea>
278 <div class="control-group">
279 <label class="control-label" for="releases">${$.i18n.prop('releases')}</label>
280 <div class="controls">
281 <input type="checkbox" id="releases" name="releases" size="5" data-bind="checked: managedRepository.releases"/>
284 <div class="control-group">
285 <label class="control-label" for="snapshots">${$.i18n.prop('snapshots')}</label>
286 <div class="controls">
287 <input type="checkbox" id="snapshots" name="snapshots" size="5" data-bind="checked: managedRepository.snapshots"/>
290 <div class="control-group">
291 <label class="control-label" for="blockRedeployments">${$.i18n.prop('blockRedeployments')}</label>
292 <div class="controls">
293 <input type="checkbox" id="blockRedeployments" name="blockRedeployments" size="5" data-bind="checked: managedRepository.blockRedeployments"/>
296 <div class="control-group">
297 <label class="control-label" for="scanned">${$.i18n.prop('scanned')}</label>
298 <div class="controls">
299 <input type="checkbox" id="scanned" name="scanned" size="5" data-bind="checked: managedRepository.scanned"/>
302 <div class="control-group">
303 <label class="control-label" for="deleteReleasedSnapshots">${$.i18n.prop('deleteReleasedSnapshots')}</label>
304 <div class="controls">
305 <input type="checkbox" id="deleteReleasedSnapshots" name="deleteReleasedSnapshots" size="5"
306 data-bind="checked: managedRepository.deleteReleasedSnapshots"/>
309 <div class="control-group">
310 <label class="control-label" for="stageRepoNeeded">${$.i18n.prop('stageRepoNeeded')}</label>
311 <div class="controls">
312 <input type="checkbox" id="stageRepoNeeded" name="stageRepoNeeded" size="5"
313 data-bind="checked: managedRepository.stageRepoNeeded"/>
316 <div class="control-group">
317 <label class="control-label" for="skipPackedIndexCreation">${$.i18n.prop('skipPackedIndexCreation')}</label>
318 <div class="controls">
319 <input type="checkbox" id="skipPackedIndexCreation" name="skipPackedIndexCreation" size="5"
320 data-bind="checked: managedRepository.skipPackedIndexCreation"/>
321 <a class="btn btn-warning btn-mini popover-doc" id="skipPackedIndexCreation-info-button"
322 data-original-title="${$.i18n.prop('skipPackedIndexCreation.help.title')}"
323 data-content="${$.i18n.prop('skipPackedIndexCreation.help.content')}">
324 <i class="icon-question-sign icon-white"></i>
332 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
333 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
337 <script id="managed-repository-delete-warning-tmpl" type='text/html'>
339 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
341 <span><strong>${$.i18n.prop('managedrepository.delete.warning.message')}</strong>.</span>
342 <div>${$.i18n.prop('id')}: ${id()}</div>
343 <div>${$.i18n.prop('name')}: ${name()}</div>
346 ${$.i18n.prop('managedrepository.delete.content')}: <input type="checkbox" id="managedrepository-deletecontent">
351 <script type="text/html" id="remote-repository-delete-modal-tmpl">
353 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
357 <script id="managed-repository-location-warning-tmpl" type='text/html'>
359 <span class="label label-warning">${$.i18n.prop('managedrepository.location.already.exists')}</span>
361 <span><strong>${$.i18n.prop('managedrepository.location.already.exists.warning.message')}</strong>.</span>
362 <div>${$.i18n.prop('id')}: ${id()}</div>
363 <div>${$.i18n.prop('name')}: ${name()}</div>
367 <script id="managed-repository-scan-now-modal-tmpl" type='text/html'>
369 ${$.i18n.prop('managedrepository.scan.all')}: <input type="checkbox" id="managed-repository-scan-now-all">
372 <script id="managed-repository-stats-tmpl" type='text/html'>
373 <div id="managedrepository-stats-${managedRepository.id()}-popover" style="display:none">
374 <div>${$.i18n.prop('managedrepository.stats.endTime')}: ${lastScanDate()}</div>
375 <div>${$.i18n.prop('managedrepository.stats.duration')}: ${duration()}ms</div>
376 <div>${$.i18n.prop('managedrepository.stats.totalFileCount')}: ${totalFileCount()}</div>
377 <div>${$.i18n.prop('managedrepository.stats.newFileCount')}: ${newFileCount()}</div>
380 <script id="pom-snippet-tmpl" type='text/html'>
381 <div class="page-header">
382 <h2>POM Snippet</h2></div>
384 <div><a onclick="$('#managed-repositories-pom-snippet').effect('blind')">${$.i18n.prop('hide')}</a></div>
390 <script id='ko_remote-repositoriesGrid' type='text/html'>
393 {{each(i, columnDefinition) columns}}
394 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
396 <th>${$.i18n.prop('edit')}</th>
397 <th>${$.i18n.prop('delete')}</th>
398 <th>${$.i18n.prop('modified')}</th>
399 <th>${$.i18n.prop('description')}</th>
400 <th>${$.i18n.prop('remoterepository.downloadremoteindex')}</th>
404 {{each(i, row) itemsOnCurrentPage()}}
405 <tr data-bind="css:{ 'modified': row.modified()}">
406 {{each(j, columnDefinition) columns}}
407 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
410 <a href="#" data-bind="click: function(){ editRemoteRepository(row) }">
411 <span class="btn btn-primary">
412 <i class="icon-pencil icon-white"/>
417 <a href="#" data-bind="click: function(){ removeRemoteRepository(row) }">
418 <span class="btn btn-danger">
419 <i class="icon-trash icon-white"/>
423 {{if row.modified()}}
425 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateRemoteRepository(row) }">${$.i18n.prop('save')}</a>
431 {{if row.description()}}
432 <a class="btn btn-warning btn-mini popover-doc" id="remoterepo-description-help"
433 data-content="${row.description()}" data-title="${$.i18n.prop('description')}">
434 <i class="icon-question-sign icon-white"></i>
439 <a href="#" data-bind="click: function(){ scheduleDownloadRemoteIndex(row) }">
440 <span class="btn btn-success">
441 <i class="icon-refresh icon-white"/>
452 <script id="remote-repository-edit-tmpl" type='text/html'>
453 <form id="remote-repository-edit-form" class="well form-horizontal">
454 <fieldset id="remote-repository-edit-fieldset">
455 <div class="control-group">
456 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
457 <div class="controls">
459 <span class="uneditable-input">${$data.remoteRepository.id}</span>
461 <input type="text" class="input-xlarge required" id="id" name="id" size="50"
462 data-bind="value: remoteRepository.id,css:{'uneditable-input': update},readonly:update"/>
466 <div class="control-group">
467 <label class="control-label" for="name">${$.i18n.prop('name')}</label>
468 <div class="controls">
469 <input type="text" class="input-xlarge required" id="name" name="name" size="50"
470 data-bind="value: remoteRepository.name"/>
473 <div class="control-group">
474 <label class="control-label" for="url">${$.i18n.prop('url')}</label>
475 <div class="controls">
476 <input type="text" class="input-xxlarge required" id="url" name="location" size="50" data-bind="value: remoteRepository.url"/>
479 <div class="control-group">
480 <label class="control-label" for="userName">${$.i18n.prop('username')}</label>
481 <div class="controls">
482 <input type="text" class="input-xlarge" id="userName" name="userName" size="50" data-bind="value: remoteRepository.indexDirectory"/>
485 <div class="control-group">
486 <label class="control-label" for="password">${$.i18n.prop('password')}</label>
487 <div class="controls">
488 <input type="password" class="input-xlarge" id="password" name="password" size="50" data-bind="value: remoteRepository.password"/>
491 <div class="control-group">
492 <label class="control-label" for="timeout">${$.i18n.prop('timeout')}</label>
493 <div class="controls">
494 <input type="text" id="timeout" class="digits" name="daysOlder" size="5" data-bind="value: remoteRepository.timeout"/>
498 <div class="control-group">
499 <label class="control-label" for="layout">${$.i18n.prop('type')}</label>
500 <div class="controls">
501 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: remoteRepository.layout"/>
504 <div class="control-group">
505 <label class="control-label" for="downloadRemoteIndex">${$.i18n.prop('downloadRemoteIndex')}</label>
506 <div class="controls">
507 <input type="checkbox" id="downloadRemoteIndex" name="downloadRemoteIndex" size="5" data-bind="checked: remoteRepository.downloadRemoteIndex"/>
511 <div class="control-group">
512 <label class="control-label" for="remoteIndexUrl">${$.i18n.prop('remoteIndexUrl')}</label>
513 <div class="controls">
514 <input type="text" class="input-xxlarge" id="remoteIndexUrl" name="remoteIndexUrl" size="5" data-bind="value: remoteRepository.remoteIndexUrl"/>
517 <div class="control-group">
518 <label class="control-label" for="cronExpression">${$.i18n.prop('cronExpression')}</label>
519 <div class="controls">
520 <input type="text" id="cronExpression" name="cronExpression" size="40" data-bind="value: remoteRepository.cronExpression"/>
521 <a class="btn btn-warning btn-mini popover-doc" id="cronExpression-info-button"
522 data-original-title="${$.i18n.prop('cronExpression.help.title')}"
523 data-content="${$.i18n.prop('cronExpression.help.content')}">
524 <i class="icon-question-sign icon-white"></i>
528 <div class="control-group">
529 <label class="control-label" for="indexDirectory">${$.i18n.prop('index.directory')}</label>
530 <div class="controls">
531 <input type="text" class="input-xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: remoteRepository.indexDirectory"/>
534 <div class="control-group">
535 <label class="control-label" for="remoteDownloadTimeout">${$.i18n.prop('remoteDownloadTimeout')}</label>
536 <div class="controls">
537 <input type="text" id="remoteDownloadTimeout" class="digits" name="remoteDownloadTimeout" size="5"
538 data-bind="value: remoteRepository.remoteDownloadTimeout"/>
542 <div class="control-group">
543 <label class="control-label" for="remoteDownloadNetworkProxyId">${$.i18n.prop('remoteDownloadNetworkProxyId')}</label>
544 <div class="controls">
545 <select id="remoteDownloadNetworkProxyId" data-bind="options: networkProxies, optionsText: 'id',optionsValue:'id', value: remoteRepository.remoteDownloadNetworkProxyId, optionsCaption: 'Choose...'"></select>
549 <div class="control-group">
550 <label class="control-label" for="downloadRemoteIndexOnStartup">${$.i18n.prop('downloadRemoteIndexOnStartup')}</label>
551 <div class="controls">
552 <input type="checkbox" id="downloadRemoteIndexOnStartup" name="downloadRemoteIndexOnStartup"
553 data-bind="checked: remoteRepository.downloadRemoteIndexOnStartup"/>
557 <div class="control-group">
558 <label class="control-label" for="daysOlder">${$.i18n.prop('description')}</label>
559 <div class="controls">
560 <textarea rows="3" id="description" name="description" data-bind="value: remoteRepository.description"></textarea>
565 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
566 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
570 <script id="remote-repository-scan-modal-tmpl" type='text/html'>
572 ${$.i18n.prop('remoterepository.download.remote.now')}: <input type="checkbox" id="remoterepository-scan-now">
575 ${$.i18n.prop('remoterepository.download.remote.full')}: <input type="checkbox" id="remoterepository-scan-full">
579 <script id="managed-repositories-bulk-save-tmpl" type='text/html'>
581 <a data-bind="click: updateModifiedManagedRepositories" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
585 <script id="remote-repositories-bulk-save-tmpl" type='text/html'>
587 <a data-bind="click: updateModifiedRemoteRepositories" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
591 <script id="networkProxiesMain" type="text/html">
592 <div class="page-header">
593 <h2><img src="images/internet-web-browser-32-32.png"/>${$.i18n.prop('network-proxies.list')}</h2>
596 <ul id="network-proxies-view-tabs" class="nav nav-tabs">
597 <li id="network-proxies-view-tabs-li-grid">
598 <a data-toggle="tab" href="#network-proxies-view" id="network-proxies-view-tabs-a-network-proxies-grid">${$.i18n.prop('network-proxies.grid.tab.title')}</a>
600 <li id="network-proxies-view-tabs-li-edit">
601 <a data-toggle="tab" href="#network-proxies-edit">${$.i18n.prop('add')}</a>
604 <div id="network-proxies-view-tabs-content" class="tab-content">
605 <div id="network-proxies-view" class="tab-pane">
606 <div id="network-proxies-bulk-save-btn" data-bind='template:{name:"network-proxies-bulk-save-tmpl"}'></div>
607 <table class="table table-striped table-bordered" id="networkProxiesTable"
608 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-network-proxies-grid',pageLinksId:'network-proxiesPagination'">
610 <div id="network-proxiesPagination"></div>
612 <div id="network-proxies-edit" class="tab-pane" data-bind='template: {name:"network-proxy-edit-tmpl"}'></div>
617 <script id='ko-network-proxies-grid' type='text/html'>
620 {{each(i, columnDefinition) columns}}
621 <th>${ columnDefinition.headerText }</th>
623 <th>${$.i18n.prop('password')}</th>
624 <th>${$.i18n.prop('network.proxy.useNtlm')}</th>
625 <th>${$.i18n.prop('edit')}</th>
626 <th>${$.i18n.prop('delete')}</th>
627 <th>${$.i18n.prop('modified')}</th>
631 {{each(i, row) itemsOnCurrentPage()}}
632 <tr data-bind="css:{ 'modified': row.modified()}">
633 {{each(j, columnDefinition) columns}}
634 {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
639 {{if row.password()}}
644 <td>${row.useNtlm()}</td>
646 <a href="#" data-bind="click: function(){ editNetworkProxy(row) }">
647 <span class="btn btn-primary">
648 <i class="icon-pencil icon-white"/>
653 <a href="#" data-bind="click: function(){ removeNetworkProxy(row) }">
654 <span class="btn btn-danger">
655 <i class="icon-trash icon-white"/>
659 {{if row.modified()}}
661 <a href="#" data-bind="click: function(){ updateNetworkProxy(row) }" class="btn btn-warning">${$.i18n.prop('save')}</a>
673 <script id="network-proxy-edit-tmpl" type='text/html'>
674 <form id="network-proxy-edit-form" class="well form-horizontal">
675 <fieldset id="network-proxy-edit-fieldset">
676 <div class="control-group">
677 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
678 <div class="controls">
680 <span class="uneditable-input">${$data.networkProxy.id}</span>
682 <input type="text" class="xlarge" id="id" name="id" size="10"
683 data-bind="value: networkProxy.id,css:{'uneditable-input': update},readonly:update"/>
687 <div class="control-group">
688 <label class="control-label" for="protocol">${$.i18n.prop('protocol')}</label>
689 <div class="controls">
690 <input type="text" class="xlarge required" id="protocol" name="protocol" size="8"
691 data-bind="value: networkProxy.protocol"/>
694 <div class="control-group">
695 <label class="control-label" for="host">${$.i18n.prop('host')}</label>
696 <div class="controls">
697 <input type="text" class="xlarge required" id="host" name="host" size="15"
698 data-bind="value: networkProxy.host"/>
701 <div class="control-group">
702 <label class="control-label" for="port">${$.i18n.prop('port')}</label>
703 <div class="controls">
704 <input type="text" class="xlarge required digits" id="port" name="port" size="6"
705 data-bind="value: networkProxy.port"/>
708 <div class="control-group">
709 <label class="control-label" for="username">${$.i18n.prop('username')}</label>
710 <div class="controls">
711 <input type="text" class="xlarge" id="username" name="username" size="50"
712 data-bind="value: networkProxy.username"/>
715 <div class="control-group">
716 <label class="control-label" for="password">${$.i18n.prop('password')}</label>
717 <div class="controls">
718 <input type="password" class="xlarge" id="password" name="password" size="50"
719 data-bind="value: networkProxy.password"/>
722 <div class="control-group">
723 <label class="control-label" for="useNtlm">${$.i18n.prop('network.proxy.useNtlm')}</label>
724 <div class="controls">
725 <input type="checkbox" id="useNtlm" name="useNtlm" data-bind="checked: networkProxy.useNtlm"/>
730 <button id="network-proxy-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
731 {{if networkProxy.modified()}}
732 ${("#network-proxy-btn-save").button('reset')}
734 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
738 <script id="network-proxies-bulk-save-tmpl" type='text/html'>
740 <a data-bind="click: updateModifiedNetworkProxies" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
743 <script id="network-proxy-delete-warning-tmpl" type='text/html'>
745 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
749 <script id="proxyConnectorsMain" type="text/html">
750 <div class="page-header">
751 <h2><img src="images/preferences-system-network-proxy-32-32.png"/>${$.i18n.prop('proxy-connectors.list')}</h2>
754 <ul id="proxy-connectors-view-tabs" class="nav nav-tabs">
755 <li id="proxy-connectors-view-tabs-li-grid" class="active">
756 <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>
758 <li id="proxy-connectors-view-tabs-li-edit">
759 <a data-toggle="tab" href="#proxy-connectors-edit" id="proxy-connectors-view-tabs-a-edit">${$.i18n.prop('add')}</a>
761 <li id="proxy-connectors-view-tabs-li-edit-order">
762 <a data-toggle="tab" href="#proxy-connectors-edit-order" id="proxy-connectors-view-tabs-a-edit-order">${$.i18n.prop('proxy-connectors.grid.tab.edit.order')}</a>
765 <div id="proxy-connectors-view-tabs-content" class="tab-content">
766 <div id="proxy-connectors-view" class="tab-pane active">
767 <div id="proxy-connectors-bulk-save-btn" data-bind='template:{name:"proxy-connectors-bulk-save-tmpl"}'></div>
768 <table class="table table-striped table-bordered" id="proxyConnectorsTable"
769 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-proxy-connectors-grid',pageLinksId:'proxy-connectorsPagination'">
771 <div id="proxy-connectorsPagination"></div>
773 <div id="proxy-connectors-edit" class="tab-pane"></div>
774 <div id="proxy-connector-edit-order" class="tab-pane span8">
775 <div id="proxy-connector-edit-order-managed-repository-div" data-bind='template:{name:"proxy-connector-edit-order-managed-repository-tmpl"}'></div>
776 <div id="proxy-connector-edit-order-div"
777 data-bind="sortable: { template: 'proxy-connector-edit-order-tmpl', data: proxyConnectors,afterMove: proxyConnectorMoved}">
784 <script id='ko-proxy-connectors-grid' type='text/html'>
787 <th title="${$.i18n.prop('proxy-connectors.grid.managedrepo.title')}">
788 ${$.i18n.prop('proxy-connectors.grid.managedrepo.grid.header')}
790 <th title="${$.i18n.prop('proxy-connectors.grid.remoterepo.title')}">
791 ${$.i18n.prop('proxy-connectors.grid.remoterepo.grid.header')}
793 <th>${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}</th>
794 <th>${$.i18n.prop('edit')}</th>
795 <th>${$.i18n.prop('delete')}</th>
796 <th>${$.i18n.prop('save')}</th>
797 <th>${$.i18n.prop('proxy-connectors.grid.header.order')}</th>
801 {{each(i, row) itemsOnCurrentPage()}}
802 <tr data-bind="css:{ 'modified': row.modified()}">
803 <td>${row.sourceRepoId()}</td>
804 <td>${row.targetRepoId()}</td>
806 <a class="btn btn-info btn-mini" id="proxy-connectors-grid-remoterepo-settings-edit-${row.sourceRepoId()}-${row.targetRepoId()}"
807 data-original-title="${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}"
808 data-content="${buildSettings(row)}" data-bind="click: showSettings">
809 <i class="icon-question-sign icon-white"></i>
814 <a data-bind="click: function(){ editProxyConnector(row)}" href="#">
815 <span class="btn btn-primary">
816 <i class="icon-pencil icon-white"/>
821 <a href="#" data-bind="click: function(){ deleteProxyConnector(row)}">
822 <span class="btn btn-danger">
823 <i class="icon-trash icon-white"/>
828 {{if row.modified()}}
829 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateProxyConnector(row)}">
830 ${$.i18n.prop('save')}
835 {{if orderChangeAware(row)}}
836 <a href="#" data-bind="click: function(){ displayOrderEdit(row)}">
837 <span class="btn btn-info">
838 <i class="icon-resize-vertical icon-white"/>
839 ${$.i18n.prop('proxy-connectors.order.edit')}
843 <span class="badge badge-info">${row.order()}</span>
849 <div id="proxy-connectors-grid-remoterepo-settings-content-${val}-${targetRepoId}" style="display:none"></div>
852 <script id='proxy-connectors-remote-settings-popover-tmpl' type='text/html'>
855 ${$.i18n.prop('proxy-connectors.remoterepo.settings.networkproxy')}: ${proxyConnector.proxyId}
857 ${$.i18n.prop('proxy-connectors.remoterepo.settings.networkproxy')}: ${$.i18n.prop('none')}
859 <table class="table">
861 <th colspan="2">${$.i18n.prop('proxy-connector.policies')}</th>
864 {{each(i, entry) proxyConnector.policiesEntries}}
865 {{var name = proxyConnectorsViewModel.findPolicyInformationName(entry.key)}}
868 <td>${entry.value}</td>
876 <script id="proxy-connector-edit-form-tmpl" type='text/html'>
878 <form id="proxy-connector-edit-form" class="well form-horizontal">
879 <fieldset id="remote-repository-edit-fieldset">
880 <div class="control-group">
881 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.network-proxy.id')}</label>
882 <div class="controls">
884 data-bind="options: proxyConnectorsViewModel.networkProxies, optionsText: 'id',optionsValue:'id',
885 value: proxyConnector.proxyId, optionsCaption: 'direct connection'"></select>
888 <div class="control-group">
889 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.managed.repository.id')}</label>
890 <div class="controls">
891 <select id="sourceRepoId"
892 data-bind="options: proxyConnectorsViewModel.managedRepositories, optionsText: 'id',optionsValue:'id',
893 value: proxyConnector.sourceRepoId,attr: {disabled: isUpdate() }"></select>
896 <div class="control-group">
897 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.remote.repository.id')}</label>
898 <div class="controls">
899 <select id="targetRepoId"
900 data-bind="options: proxyConnectorsViewModel.remoteRepositories, optionsText: 'id',optionsValue:'id',
901 value: proxyConnector.targetRepoId,attr: {disabled: isUpdate() }"></select>
904 <div class="row-fluid">
905 <div class="control-group span6">
906 <table class="table">
908 <th colspan="2">${$.i18n.prop('proxy-connector.policies')}</th>
910 <tbody data-bind="foreach: proxyConnectorsViewModel.policyInformations()">
912 <td data-bind="text: name"></td>
914 <select data-bind="options: getPolicyOptions(id()),value:getSelectedPolicyOption(id()),
915 attr: { id: 'policy-'+id() },event: { change: function(){ changePolicyOption(id())},}">
923 <div class="row-fluid">
924 <div class="control-group span6">
925 <h4>${$.i18n.prop('proxy-connector.properties')}</h4>
926 <table class="table">
928 <th><input type="text" id="property-key"/></th>
929 <th><input type="text" id="property-value"/></th>
930 <th><a href="#" data-bind="click: function(){ addProperty() }">${$.i18n.prop('add')}</a></th>
932 <tbody data-bind="foreach: proxyConnector.propertiesEntries">
934 <td data-bind="text: key"></td>
935 <td data-bind="text: value"></td>
936 <td><a href="#" data-bind="click: function(){ $parent.deleteProperty(key)}">${$.i18n.prop('delete')}</a></td>
942 <div class="row-fluid">
943 <div class="control-group span6">
944 <h4>${$.i18n.prop('proxy-connector.blacklist')}</h4>
945 <table class="table">
947 <th><input type="text" id="blacklist-value"/></th>
948 <th><a href="#" data-bind="click: function(){ addBlacklistPattern() }">${$.i18n.prop('add')}</a></th>
950 <tbody data-bind="foreach: proxyConnector.blackListPatterns">
952 <td data-bind="text: $data"></td>
953 <td><a href="#" data-bind="click: function(){removeBlacklistPattern($data)}">${$.i18n.prop('delete')}</a></td>
959 <div class="row-fluid">
960 <div class="control-group span6">
961 <h4>${$.i18n.prop('proxy-connector.whitelist')}</h4>
962 <table class="table">
964 <th><input type="text" id="whitelist-value"/></th>
965 <th><a href="#" data-bind="click: function(){ addWhitelistPattern() }">${$.i18n.prop('add')}</a></th>
967 <tbody data-bind="foreach: proxyConnector.whiteListPatterns">
969 <td data-bind="text: $data"></td>
970 <td><a href="#" data-bind="click: function(){removeWhitelistPattern($data)}">${$.i18n.prop('delete')}</a></td>
978 <button id="proxy-connector-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
980 ${("#network-proxy-btn-save").button('reset')}
982 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
987 <script id="proxy-connectors-bulk-save-tmpl" type='text/html'>
989 <a data-bind="click: updateModifiedProxyConnectors" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
993 <script id="proxy-connector-edit-order-tmpl" type='text/html'>
994 <div class="well draggable-item network-proxy-remote-item">
995 {{var remoteRepository=$parent.findRemoteRepository(targetRepoId)}}
996 <div class="row-fluid">
998 <img src="images/system-software-update-32-32.png"/>
1000 <img src="images/utilities-system-monitor-22-22.png"
1001 id="proxy-connectors-order-remoterepo-settings-edit-${sourceRepoId()}-${targetRepoId()}"
1002 data-original-title="${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}"
1003 data-bind="event: { mouseover: function(){ displaySettings(sourceRepoId(),targetRepoId())},}">
1004 <div id="proxy-connectors-order-remoterepo-settings-content-${sourceRepoId()}-${targetRepoId()}"
1005 style="display:none"></div>
1007 <div class="span6 pull-left">
1011 ${remoteRepository.name()} (<a href="${remoteRepository.url()}" target="_blank">${remoteRepository.url()}</a>)
1015 <span class="badge badge-info">${order}</span>
1021 <script id="proxy-connector-edit-order-managed-repository-tmpl" type="text/html">
1022 <div class="well row-fluid">
1024 <img src="images/applications-internet-32-32.png"/>
1028 ${managedRepository.id}
1030 ${managedRepository.name}
1034 {{if proxyConnectorsViewModel.bulkSave()}}
1036 <a data-bind="click: function(){updateModifiedProxyConnectors()}"
1037 href="#" class="btn btn-warning">${$.i18n.prop('save.all')}</a></p>
1043 <script id="proxy-connector-delete-warning-tmpl" type='text/html'>
1045 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
1049 <script id="repositoryGroupsMain" type="text/html">
1050 <div class="page-header">
1051 <h2><img src="images/applications-internet-2-32-32.png"/>${$.i18n.prop('repository.groups.list')}</h2>
1053 <ul id="repository-groups-view-tabs" class="nav nav-tabs">
1054 <li id="repository-groups-view-tabs-li-grid" class="active">
1055 <a data-toggle="tab" href="#repository-groups-view" id="repository-groups-view-tabs-a-network-proxies-grid">
1056 ${$.i18n.prop('repository-groups.grid.tab.title')}
1059 <li id="repository-groups-view-tabs-li-edit">
1060 <a data-toggle="tab" href="#repository-groups-edit" id="repository-groups-view-tabs-a-edit">${$.i18n.prop('add')}</a>
1064 <div id="repository-groups-view-tabs-content" class="tab-content">
1065 <div id="repository-groups-view" class="tab-pane active">
1066 <div id="repository-groups-table" data-bind='template:{name:"repository-groups-table-tmpl"}'>
1069 <div id="repository-groups-edit" class="tab-pane">
1070 <div class="row-fluid">
1071 <div class="span5 dotted">
1072 <div id="repository-groups-edit-div" data-bind='template:{name:"repository-group-edit-tmpl"}'></div>
1073 <div id="repository-groups-edit-order-div" style="min-height: 80px"
1074 data-bind="sortable: { template: 'repository-group-edit-order-tmpl',data:repositoryGroup.managedRepositories,afterMove:repositoryMoved}">
1078 <div class="span5 dotted">
1079 <h5>${$.i18n.prop('repository.groups.available.repositories')}</h5>
1081 <div id="repository-groups-edit-available-repositories" style="min-height: 80px"
1082 data-bind="sortable: { template: 'repository-group-edit-order-tmpl',data:availableRepositories,afterMove:repositoryMoved}">
1094 <script id="repository-groups-table-tmpl" type="text/html">
1095 <table class="table table-striped table-bordered">
1097 <th>${$.i18n.prop('repository.groups.groups.grid.header')}</th>
1098 <th>${$.i18n.prop('repository.groups.repositories.grid.header')}</th>
1099 <th>${$.i18n.prop('edit')}</th>
1100 <th>${$.i18n.prop('delete')}</th>
1101 <th>${$.i18n.prop('save')}</th>
1104 {{each(i, repositoryGroup) repositoryGroups}}
1105 <tr data-bind="css:{ 'modified': repositoryGroup.modified()}">
1106 <td>${repositoryGroup.id}</td>
1109 {{each(j,id) repositoryGroup.repositories()}}
1115 <a href="#" data-bind="click: function(){editRepositoryGroup(repositoryGroup)}">
1116 <span class="btn btn-primary">
1117 <i class="icon-pencil icon-white"/>
1122 <a href="#" data-bind="click: function(){deleteRepositoryGroup(repositoryGroup)}">
1123 <span class="btn btn-danger">
1124 <i class="icon-trash icon-white"/>
1129 {{if repositoryGroup.modified()}}
1130 <a href="#" class="btn btn-warning" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)}">
1131 ${$.i18n.prop('save')}
1141 <script id="repository-group-edit-tmpl" type="text/html">
1142 <div class="row-fluid">
1144 <div class="dotted span8">
1146 ${repositoryGroup.id}
1148 <a href="${window.archivaRuntimeInfo.baseUrl}/repository/${repositoryGroup.id()}" target="_blank">
1149 ${window.archivaRuntimeInfo.baseUrl}/repository/${repositoryGroup.id()}
1154 <div class="dotted span8">
1155 <form id="repository-group-edit-form" class="well">
1156 <fieldset id="repository-group-edit-fieldset">
1157 <div class="control-group">
1158 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
1159 <div class="controls">
1160 <input type="text" class="xlarge required" id="id" name="id" size="15"
1161 data-bind="value: repositoryGroup.id,css:{'uneditable-input': update},readonly:update"/>
1168 {{if repositoryGroup.modified()}}
1170 <a href="#" class="btn btn-warning" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)}">${$.i18n.prop('save')}</a>
1177 <script id="repository-group-edit-order-tmpl" type="text/html">
1178 <div class="well draggable-item">
1184 <a href="${$data.url}" target="_blank">
1193 <script id="repository-group-delete-warning-tmpl" type='text/html'>
1195 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
1200 <script id="merge-repo-dialog-content" type="text/html">
1201 <div class="btn-group btn-group-vertical">
1202 {{each(i, repository) repositories}}
1203 <button class="btn" type="button" onclick="mergeRepositories(encodeURIComponent('${sourceRepoId}'),encodeURIComponent('${repository.id()}'))">${repository.name()}</button>
1208 <script id="merge-repo-skip-conflicts" type="text/html">
1211 {{each(i, artifact) artifacts}}
1212 <li>${artifact.groupId}:${artifact.artifactId}:${artifact.version}</li>
1217 <button class="btn btn-success" onclick="doMerge(encodeURIComponent('${sourceRepository}'),encodeURIComponent('${targetRepository}'),false);" type="button">${$.i18n.prop('managedrepository.merge.domerge')}</button>
1218 {{if artifacts.length > 0}}
1219 <button class="btn btn-warning" onclick="doMerge(encodeURIComponent('${sourceRepository}'),encodeURIComponent('${targetRepository}'),true);" type="button">${$.i18n.prop('managedrepository.merge.domerge.skipconflicts')}</button>