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/x-jquery-tmpl">
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/x-jquery-tmpl'>
84 {{each(i, columnDefinition) columns}}
85 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
90 <th>${$.i18n.prop('edit')}</th>
91 <th>${$.i18n.prop('delete')}</th>
92 <th>${$.i18n.prop('modified')}</th>
93 <th>${$.i18n.prop('managedrepository.pomsnippet')}</th>
94 <th title="${$.i18n.prop('managedrepository.stats')}">Stats</th>
98 {{each(i, row) itemsOnCurrentPage()}}
99 <tr data-bind="css:{ 'modified': row.modified()}">
100 {{each(j, columnDefinition) columns}}
101 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
104 {{if row.releases() == true}}
105 <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('release.included')}"/>
107 <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('release.notincluded')}"/>
112 {{if row.snapshots() == true}}
113 <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('snapshots.included')}"/>
115 <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('snapshots.notincluded')}"/>
119 <a href="#" data-bind="click: function(){ scanNow(row) }">
120 <img src="images/view-refresh-22-22.png" title="${$.i18n.prop('managedrepository.scan.now')}"/>
123 <td><a href="#" data-bind="click: function(){ editManagedRepository(row) }">${$.i18n.prop('edit')}</a></td>
125 <a href="#" data-bind="click: function(){ removeManagedRepository(row) }">
126 <img src="images/edit-cut-22-22.png" title="${$.i18n.prop('delete')}"/>
129 {{if row.modified()}}
131 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateManagedRepository(row) }">${$.i18n.prop('save')}</a>
136 <td><a href="#" data-bind="click: function(){ showPomSnippet(row) }">${$.i18n.prop('managedrepository.pomsnippet')}</a></td>
137 <td id="managedrepository-stats-${row.id()}">
138 <img src="images/utilities-system-monitor-22-22.png" data-original-title="${$.i18n.prop('managedrepository.stats')}"
139 data-bind="event: { mouseover: function(){ showStats(row) }, mouseout: function(){ hideStats(row) },}"
140 id="managedrepository-stats-img-${row.id()}"/>
148 <script id="managed-repository-edit-tmpl" type='text/x-jquery-tmpl'>
149 <form id="managed-repository-edit-form" class="form-horizontal">
150 <fieldset id="managed-repository-edit-fieldset">
151 <div class="control-group">
152 <label class="control-label" for="id">${$.i18n.prop('id')}</label>
153 <div class="controls">
155 <span class="uneditable-input">${$data.managedRepository.id}</span>
157 <input type="text" class="xlarge required" id="id" name="id" size="50"
158 data-bind="value: managedRepository.id,css:{'uneditable-input': update},readonly:update"/>
162 <div class="control-group">
163 <label class="control-label" for="name">${$.i18n.prop('name')}</label>
164 <div class="controls">
165 <input type="text" class="xlarge required" id="name" name="name" size="50"
166 data-bind="value: managedRepository.name"/>
169 <div class="control-group">
170 <label class="control-label" for="location">${$.i18n.prop('directory')}</label>
171 <div class="controls">
172 <input type="text" class="xlarge required" id="location" name="location" size="50" data-bind="value: managedRepository.location"/>
175 <div class="control-group">
176 <label class="control-label" for="indexDirectory">${$.i18n.prop('index.directory')}</label>
177 <div class="controls">
178 <input type="text" class="xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: managedRepository.indexDirectory"/>
181 <div class="control-group">
182 <label class="control-label" for="layout">${$.i18n.prop('type')}</label>
183 <div class="controls">
184 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: managedRepository.layout"/>
187 <div class="control-group">
188 <label class="control-label" for="cronExpression">${$.i18n.prop('cronExpression')}</label>
189 <div class="controls">
190 <input type="text" id="cronExpression" class="required" name="cronExpression" size="40" data-bind="value: managedRepository.cronExpression"/>
193 <div class="control-group">
194 <label class="control-label" for="daysOlder">${$.i18n.prop('daysOlder')}</label>
195 <div class="controls">
196 <input type="text" id="daysOlder" class="digits" name="daysOlder" size="5" data-bind="value: managedRepository.daysOlder"/>
199 <div class="control-group">
200 <label class="control-label" for="retentionCount">${$.i18n.prop('retentionCount')}</label>
201 <div class="controls">
202 <input type="text" id="retentionCount" name="retentionCount" size="5" data-bind="value: managedRepository.retentionCount"/>
205 <div class="control-group">
206 <label class="control-label" for="releases">${$.i18n.prop('releases')}</label>
207 <div class="controls">
208 <input type="checkbox" id="releases" name="releases" size="5" data-bind="checked: managedRepository.releases"/>
211 <div class="control-group">
212 <label class="control-label" for="snapshots">${$.i18n.prop('snapshots')}</label>
213 <div class="controls">
214 <input type="checkbox" id="snapshots" name="snapshots" size="5" data-bind="checked: managedRepository.snapshots"/>
217 <div class="control-group">
218 <label class="control-label" for="blockRedeployments">${$.i18n.prop('blockRedeployments')}</label>
219 <div class="controls">
220 <input type="checkbox" id="blockRedeployments" name="blockRedeployments" size="5" data-bind="checked: managedRepository.blockRedeployments"/>
223 <div class="control-group">
224 <label class="control-label" for="scanned">${$.i18n.prop('scanned')}</label>
225 <div class="controls">
226 <input type="checkbox" id="scanned" name="scanned" size="5" data-bind="checked: managedRepository.scanned"/>
229 <div class="control-group">
230 <label class="control-label" for="deleteReleasedSnapshots">${$.i18n.prop('deleteReleasedSnapshots')}</label>
231 <div class="controls">
232 <input type="checkbox" id="deleteReleasedSnapshots" name="deleteReleasedSnapshots" size="5"
233 data-bind="checked: managedRepository.deleteReleasedSnapshots"/>
236 <div class="control-group">
237 <label class="control-label" for="stageRepoNeeded">${$.i18n.prop('stageRepoNeeded')}</label>
238 <div class="controls">
239 <input type="checkbox" id="stageRepoNeeded" name="stageRepoNeeded" size="5"
240 data-bind="checked: managedRepository.stageRepoNeeded"/>
244 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
245 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
249 <script id="managed-repository-delete-warning-tmpl" type='text/x-jquery-tmpl'>
251 <a class="close" href="#">×</a>
252 <div class="alert-message warning">
254 <strong>${$.i18n.prop('warning.not.undone.operation')}</strong>
258 <span><strong>${$.i18n.prop('managedrepository.delete.warning.message')}</strong>.</span>
259 <div>${$.i18n.prop('id')}: ${id()}</div>
260 <div>${$.i18n.prop('name')}: ${name()}</div>
263 ${$.i18n.prop('managedrepository.delete.content')}: <input type="checkbox" id="managedrepository-deletecontent">
268 <script id="managed-repository-location-warning-tmpl" type='text/x-jquery-tmpl'>
270 <a class="close" href="#">×</a>
271 <div class="alert-message warning">
273 <strong>${$.i18n.prop('managedrepository.location.already.exists')}</strong>
277 <span><strong>${$.i18n.prop('managedrepository.location.already.exists.warning.message')}</strong>.</span>
278 <div>${$.i18n.prop('id')}: ${id()}</div>
279 <div>${$.i18n.prop('name')}: ${name()}</div>
283 <script id="managed-repository-scan-now-modal-tmpl" type='text/x-jquery-tmpl'>
285 ${$.i18n.prop('managedrepository.scan.all')}: <input type="checkbox" id="managed-repository-scan-now-all">
288 <script id="managed-repository-stats-tmpl" type='text/x-jquery-tmpl'>
289 <div id="managedrepository-stats-${managedRepository.id()}-popover" style="display:none">
290 <div>${$.i18n.prop('managedrepository.stats.endTime')}: ${scanEndTime()}</div>
291 <div>${$.i18n.prop('managedrepository.stats.duration')}: ${duration()}ms</div>
292 <div>${$.i18n.prop('managedrepository.stats.totalFileCount')}: ${totalFileCount()}</div>
293 <div>${$.i18n.prop('managedrepository.stats.newFileCount')}: ${newFileCount()}</div>
296 <script id="pom-snippet-tmpl" type='text/x-jquery-tmpl'>
297 <div class="page-header">
298 <h2>POM Snippet</h2></div>
300 <div><a href="#" onclick="$('#managed-repositories-pom-snippet').effect('blind')">${$.i18n.prop('hide')}</a></div>
306 <script id='ko_remote-repositoriesGrid' type='text/x-jquery-tmpl'>
309 {{each(i, columnDefinition) columns}}
310 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
312 <th>${$.i18n.prop('edit')}</th>
313 <th>${$.i18n.prop('delete')}</th>
314 <th>${$.i18n.prop('modified')}</th>
315 <th>${$.i18n.prop('remoterepository.downloadremoteindex')}</th>
319 {{each(i, row) itemsOnCurrentPage()}}
321 {{each(j, columnDefinition) columns}}
322 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
325 <a href="#" data-bind="click: function(){ editRemoteRepository(row) }">${$.i18n.prop('edit')}</a>
328 <a href="#" data-bind="click: function(){ removeRemoteRepository(row) }">
329 <img src="images/edit-cut-22-22.png" title="${$.i18n.prop('delete')}"/>
332 {{if row.modified()}}
334 <a href="#" class="btn btn-warning" data-bind="click: function(){ updateRemoteRepository(row) }">${$.i18n.prop('save')}</a>
340 <a href="#" data-bind="click: function(){ scheduleDownloadRemoteIndex(row) }">
341 <img src="images/view-refresh-22-22.png" title="${$.i18n.prop('remoterepository.downloadremoteindex.now')}"/>
351 <script id="remote-repository-edit-tmpl" type='text/x-jquery-tmpl'>
352 <form id="remote-repository-edit-form" class="form-horizontal">
353 <fieldset id="remote-repository-edit-fieldset">
354 <div class="control-group">
355 <label class="control-label" for="name">${$.i18n.prop('id')}</label>
356 <div class="controls">
358 <span class="uneditable-input">${$data.remoteRepository.id}</span>
360 <input type="text" class="xlarge required" id="id" name="id" size="50"
361 data-bind="value: remoteRepository.id,css:{'uneditable-input': update},readonly:update"/>
365 <div class="control-group">
366 <label class="control-label" for="name">${$.i18n.prop('name')}</label>
367 <div class="controls">
368 <input type="text" class="xlarge required" id="name" name="name" size="50"
369 data-bind="value: remoteRepository.name"/>
372 <div class="control-group">
373 <label class="control-label" for="url">${$.i18n.prop('url')}</label>
374 <div class="controls">
375 <input type="text" class="xlarge required" id="url" name="location" size="50" data-bind="value: remoteRepository.url"/>
378 <div class="control-group">
379 <label class="control-label" for="userName">${$.i18n.prop('username')}</label>
380 <div class="controls">
381 <input type="text" class="xlarge" id="userName" name="userName" size="50" data-bind="value: remoteRepository.indexDirectory"/>
384 <div class="control-group">
385 <label class="control-label" for="password">${$.i18n.prop('password')}</label>
386 <div class="controls">
387 <input type="password" class="xlarge" id="password" name="password" size="50" data-bind="value: remoteRepository.password"/>
390 <div class="control-group">
391 <label class="control-label" for="timeout">${$.i18n.prop('timeout')}</label>
392 <div class="controls">
393 <input type="text" id="timeout" class="digits" name="daysOlder" size="5" data-bind="value: remoteRepository.timeout"/>
397 <div class="control-group">
398 <label class="control-label" for="layout">${$.i18n.prop('type')}</label>
399 <div class="controls">
400 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: remoteRepository.layout"/>
403 <div class="control-group">
404 <label class="control-label" for="downloadRemoteIndex">${$.i18n.prop('downloadRemoteIndex')}</label>
405 <div class="controls">
406 <input type="checkbox" id="downloadRemoteIndex" name="downloadRemoteIndex" size="5" data-bind="checked: remoteRepository.downloadRemoteIndex"/>
410 <div class="control-group">
411 <label class="control-label" for="remoteIndexUrl">${$.i18n.prop('remoteIndexUrl')}</label>
412 <div class="controls">
413 <input type="text" id="remoteIndexUrl" name="remoteIndexUrl" size="5" data-bind="value: remoteRepository.remoteIndexUrl"/>
416 <div class="control-group">
417 <label class="control-label" for="cronExpression">${$.i18n.prop('cronExpression')}</label>
418 <div class="controls">
419 <input type="text" id="cronExpression" name="cronExpression" size="40" data-bind="value: remoteRepository.cronExpression"/>
422 <div class="control-group">
423 <label class="control-label" for="indexDirectory">${$.i18n.prop('index.directory')}</label>
424 <div class="controls">
425 <input type="text" class="xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: remoteRepository.indexDirectory"/>
428 <div class="control-group">
429 <label class="control-label" for="remoteDownloadTimeout">${$.i18n.prop('remoteDownloadTimeout')}</label>
430 <div class="controls">
431 <input type="text" id="remoteDownloadTimeout" class="digits" name="remoteDownloadTimeout" size="5"
432 data-bind="value: remoteRepository.remoteDownloadTimeout"/>
436 <div class="control-group">
437 <label class="control-label" for="remoteDownloadNetworkProxyId">${$.i18n.prop('remoteDownloadNetworkProxyId')}</label>
438 <div class="controls">
439 <select id="remoteDownloadNetworkProxyId" data-bind="options: networkProxies, optionsText: 'id',optionsValue:'id', value: remoteRepository.remoteDownloadNetworkProxyId, optionsCaption: 'Choose...'"></select>
444 <div class="control-group">
445 <label class="control-label" for="downloadRemoteIndexOnStartup">${$.i18n.prop('downloadRemoteIndexOnStartup')}</label>
446 <div class="controls">
447 <input type="checkbox" id="downloadRemoteIndexOnStartup" name="downloadRemoteIndexOnStartup"
448 data-bind="checked: remoteRepository.downloadRemoteIndexOnStartup"/>
453 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
454 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
458 <script id="remote-repository-scan-modal-tmpl" type='text/x-jquery-tmpl'>
460 ${$.i18n.prop('remoterepository.scan.now')}: <input type="checkbox" id="remoterepository-scan-now">
463 ${$.i18n.prop('remoterepository.scan.full')}: <input type="checkbox" id="remoterepository-scan-full">
467 <script id="managed-repositories-bulk-save-tmpl" type='text/x-jquery-tmpl'>
469 <a data-bind="click: updateModifiedManagedRepositories" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
473 <script id="remote-repositories-bulk-save-tmpl" type='text/x-jquery-tmpl'>
475 <a data-bind="click: updateModifiedRemoteRepositories" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>