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-->
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-repeat 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-repeat icon-white"></i>
146 ${$.i18n.prop('managedrepository.pomsnippet')}
153 <a href="#" data-bind="click: function(){ editManagedRepository(row) }">
154 <span class="btn btn-primary">
155 <i class="icon-pencil icon-white"/>
160 <a href="#" data-bind="click: function(){ removeManagedRepository(row) }">
161 <span class="btn btn-danger">
162 <i class="icon-trash icon-white"/>
166 {{if row.modified()}}
168 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateManagedRepository(row) }">${$.i18n.prop('save')}</a>
174 {{if row.description()}}
175 <a class="btn btn-warning btn-mini popover-doc" id="managedrepo-description-help"
176 data-content="${row.description()}" data-title="${$.i18n.prop('description')}"
177 data-placement="left">
178 <i class="icon-question-sign icon-white"></i>
182 <td id="managedrepository-stats-${row.id()}">
183 <img src="images/utilities-system-monitor-22-22.png" data-original-title="${$.i18n.prop('managedrepository.stats')}"
184 data-bind="event: { mouseover: function(){ showStats(row) }, mouseout: function(){ hideStats(row) },}"
185 id="managedrepository-stats-img-${row.id()}"/>
193 <script id="managed-repository-edit-tmpl" type='text/html'>
194 <form id="managed-repository-edit-form" class="well form-horizontal">
195 <fieldset id="managed-repository-edit-fieldset">
196 <div class="control-group">
197 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
198 <div class="controls">
200 <span class="uneditable-input">${$data.managedRepository.id}</span>
202 <input type="text" class="xlarge required" id="id" name="id" size="50"
203 data-bind="value: managedRepository.id,css:{'uneditable-input': update},readonly:update"/>
207 <div class="control-group">
208 <label class="control-label" for="name">${$.i18n.prop('name')}</label>
209 <div class="controls">
210 <input type="text" class="xlarge required" id="name" name="name" size="50"
211 data-bind="value: managedRepository.name"/>
214 <div class="control-group">
215 <label class="control-label" for="location">${$.i18n.prop('directory')}</label>
216 <div class="controls">
217 <input type="text" class="xlarge required" id="location" name="location" size="50" data-bind="value: managedRepository.location"/>
220 <div class="control-group">
221 <label class="control-label" for="indexDirectory">${$.i18n.prop('index.directory')}</label>
222 <div class="controls">
223 <input type="text" class="xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: managedRepository.indexDirectory"/>
226 <div class="control-group">
227 <label class="control-label" for="layout">${$.i18n.prop('type')}</label>
228 <div class="controls">
229 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: managedRepository.layout"/>
232 <div class="control-group">
233 <label class="control-label" for="cronExpression">${$.i18n.prop('cronExpression')}</label>
234 <div class="controls">
235 <input type="text" id="cronExpression" class="required" name="cronExpression" size="40" data-bind="value: managedRepository.cronExpression"/>
236 <a class="btn btn-warning btn-mini popover-doc" id="cronExpression-info-button"
237 data-original-title="${$.i18n.prop('cronExpression.help.title')}"
238 data-content="${$.i18n.prop('cronExpression.help.content')}">
239 <i class="icon-question-sign icon-white"></i>
243 <div class="control-group">
244 <label class="control-label" for="daysOlder">${$.i18n.prop('daysOlder')}</label>
245 <div class="controls">
246 <input type="text" id="daysOlder" class="digits" name="daysOlder" size="5" data-bind="value: managedRepository.daysOlder"/>
249 <div class="control-group">
250 <label class="control-label" for="retentionCount">${$.i18n.prop('retentionCount')}</label>
251 <div class="controls">
252 <input type="text" id="retentionCount" name="retentionCount" size="5" data-bind="value: managedRepository.retentionCount"/>
255 <div class="control-group">
256 <label class="control-label" for="daysOlder">${$.i18n.prop('description')}</label>
257 <div class="controls">
258 <textarea rows="3" id="description" name="description" data-bind="value: managedRepository.description"></textarea>
261 <div class="control-group">
262 <label class="control-label" for="releases">${$.i18n.prop('releases')}</label>
263 <div class="controls">
264 <input type="checkbox" id="releases" name="releases" size="5" data-bind="checked: managedRepository.releases"/>
267 <div class="control-group">
268 <label class="control-label" for="snapshots">${$.i18n.prop('snapshots')}</label>
269 <div class="controls">
270 <input type="checkbox" id="snapshots" name="snapshots" size="5" data-bind="checked: managedRepository.snapshots"/>
273 <div class="control-group">
274 <label class="control-label" for="blockRedeployments">${$.i18n.prop('blockRedeployments')}</label>
275 <div class="controls">
276 <input type="checkbox" id="blockRedeployments" name="blockRedeployments" size="5" data-bind="checked: managedRepository.blockRedeployments"/>
279 <div class="control-group">
280 <label class="control-label" for="scanned">${$.i18n.prop('scanned')}</label>
281 <div class="controls">
282 <input type="checkbox" id="scanned" name="scanned" size="5" data-bind="checked: managedRepository.scanned"/>
285 <div class="control-group">
286 <label class="control-label" for="deleteReleasedSnapshots">${$.i18n.prop('deleteReleasedSnapshots')}</label>
287 <div class="controls">
288 <input type="checkbox" id="deleteReleasedSnapshots" name="deleteReleasedSnapshots" size="5"
289 data-bind="checked: managedRepository.deleteReleasedSnapshots"/>
292 <div class="control-group">
293 <label class="control-label" for="stageRepoNeeded">${$.i18n.prop('stageRepoNeeded')}</label>
294 <div class="controls">
295 <input type="checkbox" id="stageRepoNeeded" name="stageRepoNeeded" size="5"
296 data-bind="checked: managedRepository.stageRepoNeeded"/>
299 <div class="control-group">
300 <label class="control-label" for="skipPackedIndexCreation">${$.i18n.prop('skipPackedIndexCreation')}</label>
301 <div class="controls">
302 <input type="checkbox" id="skipPackedIndexCreation" name="skipPackedIndexCreation" size="5"
303 data-bind="checked: managedRepository.skipPackedIndexCreation"/>
304 <a class="btn btn-warning btn-mini popover-doc" id="skipPackedIndexCreation-info-button"
305 data-original-title="${$.i18n.prop('skipPackedIndexCreation.help.title')}"
306 data-content="${$.i18n.prop('skipPackedIndexCreation.help.content')}">
307 <i class="icon-question-sign icon-white"></i>
315 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
316 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
320 <script id="managed-repository-delete-warning-tmpl" type='text/html'>
322 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
324 <span><strong>${$.i18n.prop('managedrepository.delete.warning.message')}</strong>.</span>
325 <div>${$.i18n.prop('id')}: ${id()}</div>
326 <div>${$.i18n.prop('name')}: ${name()}</div>
329 ${$.i18n.prop('managedrepository.delete.content')}: <input type="checkbox" id="managedrepository-deletecontent">
334 <script type="text/html" id="remote-repository-delete-modal-tmpl">
336 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
340 <script id="managed-repository-location-warning-tmpl" type='text/html'>
342 <span class="label label-warning">${$.i18n.prop('managedrepository.location.already.exists')}</span>
344 <span><strong>${$.i18n.prop('managedrepository.location.already.exists.warning.message')}</strong>.</span>
345 <div>${$.i18n.prop('id')}: ${id()}</div>
346 <div>${$.i18n.prop('name')}: ${name()}</div>
350 <script id="managed-repository-scan-now-modal-tmpl" type='text/html'>
352 ${$.i18n.prop('managedrepository.scan.all')}: <input type="checkbox" id="managed-repository-scan-now-all">
355 <script id="managed-repository-stats-tmpl" type='text/html'>
356 <div id="managedrepository-stats-${managedRepository.id()}-popover" style="display:none">
357 <div>${$.i18n.prop('managedrepository.stats.endTime')}: ${lastScanDate()}</div>
358 <div>${$.i18n.prop('managedrepository.stats.duration')}: ${duration()}ms</div>
359 <div>${$.i18n.prop('managedrepository.stats.totalFileCount')}: ${totalFileCount()}</div>
360 <div>${$.i18n.prop('managedrepository.stats.newFileCount')}: ${newFileCount()}</div>
363 <script id="pom-snippet-tmpl" type='text/html'>
364 <div class="page-header">
365 <h2>POM Snippet</h2></div>
367 <div><a onclick="$('#managed-repositories-pom-snippet').effect('blind')">${$.i18n.prop('hide')}</a></div>
373 <script id='ko_remote-repositoriesGrid' type='text/html'>
376 {{each(i, columnDefinition) columns}}
377 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
379 <th>${$.i18n.prop('edit')}</th>
380 <th>${$.i18n.prop('delete')}</th>
381 <th>${$.i18n.prop('modified')}</th>
382 <th>${$.i18n.prop('description')}</th>
383 <th>${$.i18n.prop('remoterepository.downloadremoteindex')}</th>
387 {{each(i, row) itemsOnCurrentPage()}}
388 <tr data-bind="css:{ 'modified': row.modified()}">
389 {{each(j, columnDefinition) columns}}
390 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
393 <a href="#" data-bind="click: function(){ editRemoteRepository(row) }">
394 <span class="btn btn-primary">
395 <i class="icon-pencil icon-white"/>
400 <a href="#" data-bind="click: function(){ removeRemoteRepository(row) }">
401 <span class="btn btn-danger">
402 <i class="icon-trash icon-white"/>
406 {{if row.modified()}}
408 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateRemoteRepository(row) }">${$.i18n.prop('save')}</a>
414 {{if row.description()}}
415 <a class="btn btn-warning btn-mini popover-doc" id="remoterepo-description-help"
416 data-content="${row.description()}" data-title="${$.i18n.prop('description')}">
417 <i class="icon-question-sign icon-white"></i>
422 <a href="#" data-bind="click: function(){ scheduleDownloadRemoteIndex(row) }">
423 <span class="btn btn-success">
424 <i class="icon-refresh icon-white"/>
435 <script id="remote-repository-edit-tmpl" type='text/html'>
436 <form id="remote-repository-edit-form" class="well form-horizontal">
437 <fieldset id="remote-repository-edit-fieldset">
438 <div class="control-group">
439 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
440 <div class="controls">
442 <span class="uneditable-input">${$data.remoteRepository.id}</span>
444 <input type="text" class="xlarge required" id="id" name="id" size="50"
445 data-bind="value: remoteRepository.id,css:{'uneditable-input': update},readonly:update"/>
449 <div class="control-group">
450 <label class="control-label" for="name">${$.i18n.prop('name')}</label>
451 <div class="controls">
452 <input type="text" class="xlarge required" id="name" name="name" size="50"
453 data-bind="value: remoteRepository.name"/>
456 <div class="control-group">
457 <label class="control-label" for="url">${$.i18n.prop('url')}</label>
458 <div class="controls">
459 <input type="text" class="xlarge required" id="url" name="location" size="50" data-bind="value: remoteRepository.url"/>
462 <div class="control-group">
463 <label class="control-label" for="userName">${$.i18n.prop('username')}</label>
464 <div class="controls">
465 <input type="text" class="xlarge" id="userName" name="userName" size="50" data-bind="value: remoteRepository.indexDirectory"/>
468 <div class="control-group">
469 <label class="control-label" for="password">${$.i18n.prop('password')}</label>
470 <div class="controls">
471 <input type="password" class="xlarge" id="password" name="password" size="50" data-bind="value: remoteRepository.password"/>
474 <div class="control-group">
475 <label class="control-label" for="timeout">${$.i18n.prop('timeout')}</label>
476 <div class="controls">
477 <input type="text" id="timeout" class="digits" name="daysOlder" size="5" data-bind="value: remoteRepository.timeout"/>
481 <div class="control-group">
482 <label class="control-label" for="layout">${$.i18n.prop('type')}</label>
483 <div class="controls">
484 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: remoteRepository.layout"/>
487 <div class="control-group">
488 <label class="control-label" for="downloadRemoteIndex">${$.i18n.prop('downloadRemoteIndex')}</label>
489 <div class="controls">
490 <input type="checkbox" id="downloadRemoteIndex" name="downloadRemoteIndex" size="5" data-bind="checked: remoteRepository.downloadRemoteIndex"/>
494 <div class="control-group">
495 <label class="control-label" for="remoteIndexUrl">${$.i18n.prop('remoteIndexUrl')}</label>
496 <div class="controls">
497 <input type="text" id="remoteIndexUrl" name="remoteIndexUrl" size="5" data-bind="value: remoteRepository.remoteIndexUrl"/>
500 <div class="control-group">
501 <label class="control-label" for="cronExpression">${$.i18n.prop('cronExpression')}</label>
502 <div class="controls">
503 <input type="text" id="cronExpression" name="cronExpression" size="40" data-bind="value: remoteRepository.cronExpression"/>
504 <a class="btn btn-warning btn-mini popover-doc" id="cronExpression-info-button"
505 data-original-title="${$.i18n.prop('cronExpression.help.title')}"
506 data-content="${$.i18n.prop('cronExpression.help.content')}">
507 <i class="icon-question-sign icon-white"></i>
511 <div class="control-group">
512 <label class="control-label" for="indexDirectory">${$.i18n.prop('index.directory')}</label>
513 <div class="controls">
514 <input type="text" class="xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: remoteRepository.indexDirectory"/>
517 <div class="control-group">
518 <label class="control-label" for="remoteDownloadTimeout">${$.i18n.prop('remoteDownloadTimeout')}</label>
519 <div class="controls">
520 <input type="text" id="remoteDownloadTimeout" class="digits" name="remoteDownloadTimeout" size="5"
521 data-bind="value: remoteRepository.remoteDownloadTimeout"/>
525 <div class="control-group">
526 <label class="control-label" for="remoteDownloadNetworkProxyId">${$.i18n.prop('remoteDownloadNetworkProxyId')}</label>
527 <div class="controls">
528 <select id="remoteDownloadNetworkProxyId" data-bind="options: networkProxies, optionsText: 'id',optionsValue:'id', value: remoteRepository.remoteDownloadNetworkProxyId, optionsCaption: 'Choose...'"></select>
532 <div class="control-group">
533 <label class="control-label" for="downloadRemoteIndexOnStartup">${$.i18n.prop('downloadRemoteIndexOnStartup')}</label>
534 <div class="controls">
535 <input type="checkbox" id="downloadRemoteIndexOnStartup" name="downloadRemoteIndexOnStartup"
536 data-bind="checked: remoteRepository.downloadRemoteIndexOnStartup"/>
540 <div class="control-group">
541 <label class="control-label" for="daysOlder">${$.i18n.prop('description')}</label>
542 <div class="controls">
543 <textarea rows="3" id="description" name="description" data-bind="value: remoteRepository.description"></textarea>
548 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
549 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
553 <script id="remote-repository-scan-modal-tmpl" type='text/html'>
555 ${$.i18n.prop('remoterepository.download.remote.now')}: <input type="checkbox" id="remoterepository-scan-now">
558 ${$.i18n.prop('remoterepository.download.remote.full')}: <input type="checkbox" id="remoterepository-scan-full">
562 <script id="managed-repositories-bulk-save-tmpl" type='text/html'>
564 <a data-bind="click: updateModifiedManagedRepositories" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
568 <script id="remote-repositories-bulk-save-tmpl" type='text/html'>
570 <a data-bind="click: updateModifiedRemoteRepositories" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
574 <script id="networkProxiesMain" type="text/html">
575 <div class="page-header">
576 <h2><img src="images/internet-web-browser-32-32.png"/>${$.i18n.prop('network-proxies.list')}</h2>
579 <ul id="network-proxies-view-tabs" class="nav nav-tabs">
580 <li id="network-proxies-view-tabs-li-grid">
581 <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>
583 <li id="network-proxies-view-tabs-li-edit">
584 <a data-toggle="tab" href="#network-proxies-edit">${$.i18n.prop('add')}</a>
587 <div id="network-proxies-view-tabs-content" class="tab-content">
588 <div id="network-proxies-view" class="tab-pane">
589 <div id="network-proxies-bulk-save-btn" data-bind='template:{name:"network-proxies-bulk-save-tmpl"}'></div>
590 <table class="table table-striped table-bordered" id="networkProxiesTable"
591 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-network-proxies-grid',pageLinksId:'network-proxiesPagination'">
593 <div id="network-proxiesPagination"></div>
595 <div id="network-proxies-edit" class="tab-pane" data-bind='template: {name:"network-proxy-edit-tmpl"}'></div>
600 <script id='ko-network-proxies-grid' type='text/html'>
603 {{each(i, columnDefinition) columns}}
604 <th>${ columnDefinition.headerText }</th>
606 <th>${$.i18n.prop('password')}</th>
607 <th>${$.i18n.prop('network.proxy.useNtlm')}</th>
608 <th>${$.i18n.prop('edit')}</th>
609 <th>${$.i18n.prop('delete')}</th>
610 <th>${$.i18n.prop('modified')}</th>
614 {{each(i, row) itemsOnCurrentPage()}}
615 <tr data-bind="css:{ 'modified': row.modified()}">
616 {{each(j, columnDefinition) columns}}
617 {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
622 {{if row.password()}}
627 <td>${row.useNtlm()}</td>
629 <a href="#" data-bind="click: function(){ editNetworkProxy(row) }">
630 <span class="btn btn-primary">
631 <i class="icon-pencil icon-white"/>
636 <a href="#" data-bind="click: function(){ removeNetworkProxy(row) }">
637 <span class="btn btn-danger">
638 <i class="icon-trash icon-white"/>
642 {{if row.modified()}}
644 <a href="#" data-bind="click: function(){ updateNetworkProxy(row) }" class="btn btn-warning">${$.i18n.prop('save')}</a>
656 <script id="network-proxy-edit-tmpl" type='text/html'>
657 <form id="network-proxy-edit-form" class="well form-horizontal">
658 <fieldset id="network-proxy-edit-fieldset">
659 <div class="control-group">
660 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
661 <div class="controls">
663 <span class="uneditable-input">${$data.networkProxy.id}</span>
665 <input type="text" class="xlarge" id="id" name="id" size="10"
666 data-bind="value: networkProxy.id,css:{'uneditable-input': update},readonly:update"/>
670 <div class="control-group">
671 <label class="control-label" for="protocol">${$.i18n.prop('protocol')}</label>
672 <div class="controls">
673 <input type="text" class="xlarge required" id="protocol" name="protocol" size="8"
674 data-bind="value: networkProxy.protocol"/>
677 <div class="control-group">
678 <label class="control-label" for="host">${$.i18n.prop('host')}</label>
679 <div class="controls">
680 <input type="text" class="xlarge required" id="host" name="host" size="15"
681 data-bind="value: networkProxy.host"/>
684 <div class="control-group">
685 <label class="control-label" for="port">${$.i18n.prop('port')}</label>
686 <div class="controls">
687 <input type="text" class="xlarge required digits" id="port" name="port" size="6"
688 data-bind="value: networkProxy.port"/>
691 <div class="control-group">
692 <label class="control-label" for="username">${$.i18n.prop('username')}</label>
693 <div class="controls">
694 <input type="text" class="xlarge" id="username" name="username" size="50"
695 data-bind="value: networkProxy.username"/>
698 <div class="control-group">
699 <label class="control-label" for="password">${$.i18n.prop('password')}</label>
700 <div class="controls">
701 <input type="password" class="xlarge" id="password" name="password" size="50"
702 data-bind="value: networkProxy.password"/>
705 <div class="control-group">
706 <label class="control-label" for="useNtlm">${$.i18n.prop('network.proxy.useNtlm')}</label>
707 <div class="controls">
708 <input type="checkbox" id="useNtlm" name="useNtlm" data-bind="checked: networkProxy.useNtlm"/>
713 <button id="network-proxy-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
714 {{if networkProxy.modified()}}
715 ${("#network-proxy-btn-save").button('reset')}
717 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
721 <script id="network-proxies-bulk-save-tmpl" type='text/html'>
723 <a data-bind="click: updateModifiedNetworkProxies" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
726 <script id="network-proxy-delete-warning-tmpl" type='text/html'>
728 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
732 <script id="proxyConnectorsMain" type="text/html">
733 <div class="page-header">
734 <h2><img src="images/preferences-system-network-proxy-32-32.png"/>${$.i18n.prop('proxy-connectors.list')}</h2>
737 <ul id="proxy-connectors-view-tabs" class="nav nav-tabs">
738 <li id="proxy-connectors-view-tabs-li-grid" class="active">
739 <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>
741 <li id="proxy-connectors-view-tabs-li-edit">
742 <a data-toggle="tab" href="#proxy-connectors-edit" id="proxy-connectors-view-tabs-a-edit">${$.i18n.prop('add')}</a>
744 <li id="proxy-connectors-view-tabs-li-edit-order">
745 <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>
748 <div id="proxy-connectors-view-tabs-content" class="tab-content">
749 <div id="proxy-connectors-view" class="tab-pane active">
750 <div id="proxy-connectors-bulk-save-btn" data-bind='template:{name:"proxy-connectors-bulk-save-tmpl"}'></div>
751 <table class="table table-striped table-bordered" id="proxyConnectorsTable"
752 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-proxy-connectors-grid',pageLinksId:'proxy-connectorsPagination'">
754 <div id="proxy-connectorsPagination"></div>
756 <div id="proxy-connectors-edit" class="tab-pane"></div>
757 <div id="proxy-connector-edit-order" class="tab-pane span8">
758 <div id="proxy-connector-edit-order-managed-repository-div" data-bind='template:{name:"proxy-connector-edit-order-managed-repository-tmpl"}'></div>
759 <div id="proxy-connector-edit-order-div"
760 data-bind="sortable: { template: 'proxy-connector-edit-order-tmpl', data: proxyConnectors,afterMove: proxyConnectorMoved}">
767 <script id='ko-proxy-connectors-grid' type='text/html'>
770 <th title="${$.i18n.prop('proxy-connectors.grid.managedrepo.title')}">
771 ${$.i18n.prop('proxy-connectors.grid.managedrepo.grid.header')}
773 <th title="${$.i18n.prop('proxy-connectors.grid.remoterepo.title')}">
774 ${$.i18n.prop('proxy-connectors.grid.remoterepo.grid.header')}
776 <th>${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}</th>
777 <th>${$.i18n.prop('edit')}</th>
778 <th>${$.i18n.prop('delete')}</th>
779 <th>${$.i18n.prop('save')}</th>
780 <th>${$.i18n.prop('proxy-connectors.grid.header.order')}</th>
784 {{each(i, row) itemsOnCurrentPage()}}
785 <tr data-bind="css:{ 'modified': row.modified()}">
786 <td>${row.sourceRepoId()}</td>
787 <td>${row.targetRepoId()}</td>
789 <a class="btn btn-info btn-mini" id="proxy-connectors-grid-remoterepo-settings-edit-${row.sourceRepoId()}-${row.targetRepoId()}"
790 data-original-title="${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}"
791 data-content="${buildSettings(row)}" data-bind="click: showSettings">
792 <i class="icon-question-sign icon-white"></i>
797 <a data-bind="click: function(){ editProxyConnector(row)}" href="#">
798 <span class="btn btn-primary">
799 <i class="icon-pencil icon-white"/>
804 <a href="#" data-bind="click: function(){ deleteProxyConnector(row)}">
805 <span class="btn btn-danger">
806 <i class="icon-trash icon-white"/>
811 {{if row.modified()}}
812 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateProxyConnector(row)}">
813 ${$.i18n.prop('save')}
818 {{if orderChangeAware(row)}}
819 <a href="#" data-bind="click: function(){ displayOrderEdit(row)}">
820 <span class="btn btn-info">
821 <i class="icon-resize-vertical icon-white"/>
822 ${$.i18n.prop('proxy-connectors.order.edit')}
826 <span class="badge badge-info">${row.order()}</span>
832 <div id="proxy-connectors-grid-remoterepo-settings-content-${val}-${targetRepoId}" style="display:none"></div>
835 <script id='proxy-connectors-remote-settings-popover-tmpl' type='text/html'>
838 ${$.i18n.prop('proxy-connectors.remoterepo.settings.networkproxy')}: ${proxyConnector.proxyId}
840 ${$.i18n.prop('proxy-connectors.remoterepo.settings.networkproxy')}: ${$.i18n.prop('none')}
842 <table class="table">
844 <th colspan="2">${$.i18n.prop('proxy-connector.policies')}</th>
847 {{each(i, entry) proxyConnector.policiesEntries}}
848 {{var name = proxyConnectorsViewModel.findPolicyInformationName(entry.key)}}
851 <td>${entry.value}</td>
859 <script id="proxy-connector-edit-form-tmpl" type='text/html'>
861 <form id="proxy-connector-edit-form" class="well form-horizontal">
862 <fieldset id="remote-repository-edit-fieldset">
863 <div class="control-group">
864 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.network-proxy.id')}</label>
865 <div class="controls">
867 data-bind="options: proxyConnectorsViewModel.networkProxies, optionsText: 'id',optionsValue:'id',
868 value: proxyConnector.proxyId, optionsCaption: 'direct connection'"></select>
871 <div class="control-group">
872 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.managed.repository.id')}</label>
873 <div class="controls">
874 <select id="sourceRepoId"
875 data-bind="options: proxyConnectorsViewModel.managedRepositories, optionsText: 'id',optionsValue:'id',
876 value: proxyConnector.sourceRepoId,attr: {disabled: isUpdate() }"></select>
879 <div class="control-group">
880 <label class="control-label" for="proxyId">${$.i18n.prop('proxy-connector.remote.repository.id')}</label>
881 <div class="controls">
882 <select id="targetRepoId"
883 data-bind="options: proxyConnectorsViewModel.remoteRepositories, optionsText: 'id',optionsValue:'id',
884 value: proxyConnector.targetRepoId,attr: {disabled: isUpdate() }"></select>
887 <div class="row-fluid">
888 <div class="control-group span6">
889 <table class="table">
891 <th colspan="2">${$.i18n.prop('proxy-connector.policies')}</th>
893 <tbody data-bind="foreach: proxyConnectorsViewModel.policyInformations()">
895 <td data-bind="text: name"></td>
897 <select data-bind="options: getPolicyOptions(id()),value:getSelectedPolicyOption(id()),
898 attr: { id: 'policy-'+id() },event: { change: function(){ changePolicyOption(id())},}">
906 <div class="row-fluid">
907 <div class="control-group span6">
908 <h4>${$.i18n.prop('proxy-connector.properties')}</h4>
909 <table class="table">
911 <th><input type="text" id="property-key"/></th>
912 <th><input type="text" id="property-value"/></th>
913 <th><a href="#" data-bind="click: function(){ addProperty() }">${$.i18n.prop('add')}</a></th>
915 <tbody data-bind="foreach: proxyConnector.propertiesEntries">
917 <td data-bind="text: key"></td>
918 <td data-bind="text: value"></td>
919 <td><a href="#" data-bind="click: function(){ $parent.deleteProperty(key)}">${$.i18n.prop('delete')}</a></td>
925 <div class="row-fluid">
926 <div class="control-group span6">
927 <h4>${$.i18n.prop('proxy-connector.blacklist')}</h4>
928 <table class="table">
930 <th><input type="text" id="blacklist-value"/></th>
931 <th><a href="#" data-bind="click: function(){ addBlacklistPattern() }">${$.i18n.prop('add')}</a></th>
933 <tbody data-bind="foreach: proxyConnector.blackListPatterns">
935 <td data-bind="text: $data"></td>
936 <td><a href="#" data-bind="click: function(){removeBlacklistPattern($data)}">${$.i18n.prop('delete')}</a></td>
942 <div class="row-fluid">
943 <div class="control-group span6">
944 <h4>${$.i18n.prop('proxy-connector.whitelist')}</h4>
945 <table class="table">
947 <th><input type="text" id="whitelist-value"/></th>
948 <th><a href="#" data-bind="click: function(){ addWhitelistPattern() }">${$.i18n.prop('add')}</a></th>
950 <tbody data-bind="foreach: proxyConnector.whiteListPatterns">
952 <td data-bind="text: $data"></td>
953 <td><a href="#" data-bind="click: function(){removeWhitelistPattern($data)}">${$.i18n.prop('delete')}</a></td>
961 <button id="proxy-connector-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
963 ${("#network-proxy-btn-save").button('reset')}
965 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
970 <script id="proxy-connectors-bulk-save-tmpl" type='text/html'>
972 <a data-bind="click: updateModifiedProxyConnectors" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
976 <script id="proxy-connector-edit-order-tmpl" type='text/html'>
977 <div class="well draggable-item network-proxy-remote-item">
978 {{var remoteRepository=$parent.findRemoteRepository(targetRepoId)}}
979 <div class="row-fluid">
981 <img src="images/system-software-update-32-32.png"/>
983 <img src="images/utilities-system-monitor-22-22.png"
984 id="proxy-connectors-order-remoterepo-settings-edit-${sourceRepoId()}-${targetRepoId()}"
985 data-original-title="${$.i18n.prop('proxy-connectors.grid.remoterepo.settings.popover.title')}"
986 data-bind="event: { mouseover: function(){ displaySettings(sourceRepoId(),targetRepoId())},}">
987 <div id="proxy-connectors-order-remoterepo-settings-content-${sourceRepoId()}-${targetRepoId()}"
988 style="display:none"></div>
990 <div class="span6 pull-left">
994 ${remoteRepository.name()} (<a href="${remoteRepository.url()}" target="_blank">${remoteRepository.url()}</a>)
998 <span class="badge badge-info">${order}</span>
1004 <script id="proxy-connector-edit-order-managed-repository-tmpl" type="text/html">
1005 <div class="well row-fluid">
1007 <img src="images/applications-internet-32-32.png"/>
1011 ${managedRepository.id}
1013 ${managedRepository.name}
1017 {{if proxyConnectorsViewModel.bulkSave()}}
1019 <a data-bind="click: function(){updateModifiedProxyConnectors()}"
1020 href="#" class="btn btn-warning">${$.i18n.prop('save.all')}</a></p>
1026 <script id="proxy-connector-delete-warning-tmpl" type='text/html'>
1028 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
1032 <script id="repositoryGroupsMain" type="text/html">
1033 <div class="page-header">
1034 <h2><img src="images/applications-internet-2-32-32.png"/>${$.i18n.prop('repository.groups.list')}</h2>
1036 <ul id="repository-groups-view-tabs" class="nav nav-tabs">
1037 <li id="repository-groups-view-tabs-li-grid" class="active">
1038 <a data-toggle="tab" href="#repository-groups-view" id="repository-groups-view-tabs-a-network-proxies-grid">
1039 ${$.i18n.prop('repository-groups.grid.tab.title')}
1042 <li id="repository-groups-view-tabs-li-edit">
1043 <a data-toggle="tab" href="#repository-groups-edit" id="repository-groups-view-tabs-a-edit">${$.i18n.prop('add')}</a>
1047 <div id="repository-groups-view-tabs-content" class="tab-content">
1048 <div id="repository-groups-view" class="tab-pane active">
1049 <div id="repository-groups-table" data-bind='template:{name:"repository-groups-table-tmpl"}'>
1052 <div id="repository-groups-edit" class="tab-pane">
1053 <div class="row-fluid">
1054 <div class="span5 dotted">
1055 <div id="repository-groups-edit-div" data-bind='template:{name:"repository-group-edit-tmpl"}'></div>
1056 <div id="repository-groups-edit-order-div" style="min-height: 80px"
1057 data-bind="sortable: { template: 'repository-group-edit-order-tmpl',data:repositoryGroup.managedRepositories,afterMove:repositoryMoved}">
1061 <div class="span5 dotted">
1062 <h5>${$.i18n.prop('repository.groups.available.repositories')}</h5>
1064 <div id="repository-groups-edit-available-repositories" style="min-height: 80px"
1065 data-bind="sortable: { template: 'repository-group-edit-order-tmpl',data:availableRepositories,afterMove:repositoryMoved}">
1077 <script id="repository-groups-table-tmpl" type="text/html">
1078 <table class="table table-striped table-bordered">
1080 <th>${$.i18n.prop('repository.groups.groups.grid.header')}</th>
1081 <th>${$.i18n.prop('repository.groups.repositories.grid.header')}</th>
1082 <th>${$.i18n.prop('edit')}</th>
1083 <th>${$.i18n.prop('delete')}</th>
1084 <th>${$.i18n.prop('save')}</th>
1087 {{each(i, repositoryGroup) repositoryGroups}}
1088 <tr data-bind="css:{ 'modified': repositoryGroup.modified()}">
1089 <td>${repositoryGroup.id}</td>
1092 {{each(j,id) repositoryGroup.repositories()}}
1098 <a href="#" data-bind="click: function(){editRepositoryGroup(repositoryGroup)}">
1099 <span class="btn btn-primary">
1100 <i class="icon-pencil icon-white"/>
1105 <a href="#" data-bind="click: function(){deleteRepositoryGroup(repositoryGroup)}">
1106 <span class="btn btn-danger">
1107 <i class="icon-trash icon-white"/>
1112 {{if repositoryGroup.modified()}}
1113 <a href="#" class="btn btn-warning" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)}">
1114 ${$.i18n.prop('save')}
1124 <script id="repository-group-edit-tmpl" type="text/html">
1125 <div class="row-fluid">
1127 <div class="dotted span8">
1129 ${repositoryGroup.id}
1131 <a href="${window.archivaRuntimeInfo.baseUrl}/repository/${repositoryGroup.id()}" target="_blank">
1132 ${window.archivaRuntimeInfo.baseUrl}/repository/${repositoryGroup.id()}
1137 <div class="dotted span8">
1138 <form id="repository-group-edit-form" class="well">
1139 <fieldset id="repository-group-edit-fieldset">
1140 <div class="control-group">
1141 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
1142 <div class="controls">
1143 <input type="text" class="xlarge required" id="id" name="id" size="15"
1144 data-bind="value: repositoryGroup.id,css:{'uneditable-input': update},readonly:update"/>
1151 {{if repositoryGroup.modified()}}
1153 <a href="#" class="btn btn-warning" data-bind="click: function(){saveRepositoryGroup(repositoryGroup)}">${$.i18n.prop('save')}</a>
1160 <script id="repository-group-edit-order-tmpl" type="text/html">
1161 <div class="well draggable-item">
1167 <a href="${window.archivaRuntimeInfo.baseUrl}/repository/${$data.id()}" target="_blank">
1168 ${window.archivaRuntimeInfo.baseUrl}/repository/${$data.id()}
1176 <script id="repository-group-delete-warning-tmpl" type='text/html'>
1178 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>