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>${$.i18n.prop('administration.repositories')}</h2>
24 <ul id="repositories-tabs" class="tabs">
26 <a href="#managed-repositories-content">${$.i18n.prop('managedrepositories.grid.head')}</a>
29 <a href="#remote-repositories-content">${$.i18n.prop('remoterepositories.grid.head')}</a>
32 <div class="tab-content">
33 <div id="managed-repositories-content" class="active">
34 <ul id="managed-repositories-pills" class="pills">
35 <li class="active" id="managed-repositories-view-li">
36 <a href="#managed-repositories-view">${$.i18n.prop('managedrepositories.grid.tab.title')}</a>
38 <li id="managed-repository-edit-li">
39 <a 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="active">
44 <table class="bordered-table zebra-striped" id="managed-repositories-table"
45 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_managed-repositoriesGrid',pageLinksId:'managed-repositoriesPagination',data:'managedRepositories'">
47 <div id="managed-repositoriesPagination"></div>
48 <div id="managed-repositories-pom-snippet"></div>
50 <div id="managed-repository-edit" data-bind='template: {name:"managed-repository-edit-tmpl"}'>
56 <div id="remote-repositories-content">
57 <ul id="remote-repositories-pills" class="pills">
58 <li class="active" id="remote-repositories-view-li">
59 <a href="#remote-repositories-view">${$.i18n.prop('remoterepositories.grid.tab.title')}</a>
61 <li id="remote-repository-edit-li">
62 <a href="#remote-repository-edit">${$.i18n.prop('add')}</a>
65 <div id="remote-repositories-tabs-content" class="pill-content">
66 <div id="remote-repositories-view" class="active">
67 <table class="bordered-table zebra-striped" id="remote-repositories-table"
68 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_remote-repositoriesGrid',pageLinksId:'remote-repositoriesPagination',data:'remoteRepositories'">
70 <div id="remote-repositoriesPagination"></div>
72 <div id="remote-repository-edit" data-bind='template: {name:"remote-repository-edit-tmpl"}'>
79 <script id='ko_managed-repositoriesGrid' type='text/x-jquery-tmpl'>
82 {{each(i, columnDefinition) columns}}
83 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
88 <th>${$.i18n.prop('edit')}</th>
89 <th>${$.i18n.prop('delete')}</th>
90 <th>${$.i18n.prop('managedrepository.pomsnippet')}</th>
91 <th title="${$.i18n.prop('managedrepository.stats')}">Stats</th>
95 {{each(i, row) itemsOnCurrentPage()}}
97 {{each(j, columnDefinition) columns}}
98 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
101 {{if row.releases() == true}}
102 <img src="images/weather-clear.png" title="${$.i18n.prop('release.included')}"/>
104 <img src="images/dialog-error.png" title="${$.i18n.prop('release.notincluded')}"/>
109 {{if row.snapshots() == true}}
110 <img src="images/weather-clear.png" title="${$.i18n.prop('snapshots.included')}"/>
112 <img src="images/dialog-error.png" title="${$.i18n.prop('snapshots.notincluded')}"/>
116 <a href="#" data-bind="click: function(){ scanNow(row) }">
117 <img src="images/view-refresh.png" title="${$.i18n.prop('managedrepository.scan.now')}"/>
120 <td><a href="#" data-bind="click: function(){ editManagedRepository(row) }">${$.i18n.prop('edit')}</a></td>
122 <a href="#" data-bind="click: function(){ removeManagedRepository(row) }">
123 <img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
126 <td><a href="#" data-bind="click: function(){ showPomSnippet(row) }">${$.i18n.prop('managedrepository.pomsnippet')}</a></td>
127 <td id="managedrepository-stats-${row.id()}">
128 <img src="images/utilities-system-monitor.png" popover-title="${$.i18n.prop('managedrepository.stats')}"
129 data-bind="event: { mouseover: function(){ showStats(row) }, mouseout: function(){ hideStats(row) },}"
130 id="managedrepository-stats-img-${row.id()}"/>
138 <script id="managed-repository-edit-tmpl" type='text/x-jquery-tmpl'>
139 <form id="managed-repository-edit-form">
140 <fieldset id="managed-repository-edit-fieldset">
141 <div class="clearfix">
142 <label for="name">${$.i18n.prop('id')}</label>
145 <span class="uneditable-input">${$data.managedRepository.id}</span>
147 <input type="text" class="xlarge required" id="id" name="id" size="50"
148 data-bind="value: managedRepository.id,css:{'uneditable-input': update},readonly:update"/>
152 <div class="clearfix">
153 <label for="name">${$.i18n.prop('name')}</label>
155 <input type="text" class="xlarge required" id="name" name="name" size="50"
156 data-bind="value: managedRepository.name"/>
159 <div class="clearfix">
160 <label for="location">${$.i18n.prop('directory')}</label>
162 <input type="text" class="xlarge required" id="location" name="location" size="50" data-bind="value: managedRepository.location"/>
165 <div class="clearfix">
166 <label for="indexDirectory">${$.i18n.prop('index.directory')}</label>
168 <input type="text" class="xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: managedRepository.indexDirectory"/>
171 <div class="clearfix">
172 <label for="layout">${$.i18n.prop('type')}</label>
174 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: managedRepository.layout"/>
177 <div class="clearfix">
178 <label for="cronExpression">${$.i18n.prop('cronExpression')}</label>
180 <input type="text" id="cronExpression" class="required" name="cronExpression" size="40" data-bind="value: managedRepository.cronExpression"/>
183 <div class="clearfix">
184 <label for="daysOlder">${$.i18n.prop('daysOlder')}</label>
186 <input type="text" id="daysOlder" class="digits" name="daysOlder" size="5" data-bind="value: managedRepository.daysOlder"/>
189 <div class="clearfix">
190 <label for="retentionCount">${$.i18n.prop('retentionCount')}</label>
192 <input type="text" id="retentionCount" name="retentionCount" size="5" data-bind="value: managedRepository.retentionCount"/>
195 <div class="clearfix">
196 <label for="releases">${$.i18n.prop('releases')}</label>
198 <input type="checkbox" id="releases" name="releases" size="5" data-bind="checked: managedRepository.releases"/>
201 <div class="clearfix">
202 <label for="snapshots">${$.i18n.prop('snapshots')}</label>
204 <input type="checkbox" id="snapshots" name="snapshots" size="5" data-bind="checked: managedRepository.snapshots"/>
207 <div class="clearfix">
208 <label for="blockRedeployments">${$.i18n.prop('blockRedeployments')}</label>
210 <input type="checkbox" id="blockRedeployments" name="blockRedeployments" size="5" data-bind="checked: managedRepository.blockRedeployments"/>
213 <div class="clearfix">
214 <label for="scanned">${$.i18n.prop('scanned')}</label>
216 <input type="checkbox" id="scanned" name="scanned" size="5" data-bind="checked: managedRepository.scanned"/>
219 <div class="clearfix">
220 <label for="deleteReleasedSnapshots">${$.i18n.prop('deleteReleasedSnapshots')}</label>
222 <input type="checkbox" id="deleteReleasedSnapshots" name="deleteReleasedSnapshots" size="5"
223 data-bind="checked: managedRepository.deleteReleasedSnapshots"/>
226 <div class="clearfix">
227 <label for="stageRepoNeeded">${$.i18n.prop('stageRepoNeeded')}</label>
229 <input type="checkbox" id="stageRepoNeeded" name="stageRepoNeeded" size="5"
230 data-bind="checked: managedRepository.stageRepoNeeded"/>
234 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
235 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
239 <script id="managed-repository-delete-warning-tmpl" type='text/x-jquery-tmpl'>
241 <a class="close" href="#">×</a>
242 <div class="alert-message warning">
244 <strong>${$.i18n.prop('warning.not.undone.operation')}</strong>
248 <span><strong>${$.i18n.prop('managedrepository.delete.warning.message')}</strong>.</span>
249 <div>${$.i18n.prop('id')}: ${id()}</div>
250 <div>${$.i18n.prop('name')}: ${name()}</div>
253 ${$.i18n.prop('managedrepository.delete.content')}: <input type="checkbox" id="managedrepository-deletecontent">
257 <script id="managed-repository-location-warning-tmpl" type='text/x-jquery-tmpl'>
259 <a class="close" href="#">×</a>
260 <div class="alert-message warning">
262 <strong>${$.i18n.prop('managedrepository.location.already.exists')}</strong>
266 <span><strong>${$.i18n.prop('managedrepository.location.already.exists.warning.message')}</strong>.</span>
267 <div>${$.i18n.prop('id')}: ${id()}</div>
268 <div>${$.i18n.prop('name')}: ${name()}</div>
272 <script id="managed-repository-scan-now-modal-tmpl" type='text/x-jquery-tmpl'>
274 ${$.i18n.prop('managedrepository.scan.all')}: <input type="checkbox" id="managed-repository-scan-now-all">
277 <script id="managed-repository-stats-tmpl" type='text/x-jquery-tmpl'>
278 <div id="managedrepository-stats-${managedRepository.id()}-popover" style="display:none">
279 <div>${$.i18n.prop('managedrepository.stats.endTime')}: ${scanEndTime()}</div>
280 <div>${$.i18n.prop('managedrepository.stats.duration')}: ${duration()}ms</div>
281 <div>${$.i18n.prop('managedrepository.stats.totalFileCount')}: ${totalFileCount()}</div>
282 <div>${$.i18n.prop('managedrepository.stats.newFileCount')}: ${newFileCount()}</div>
285 <script id="pom-snippet-tmpl" type='text/x-jquery-tmpl'>
286 <div class="page-header">
287 <h2>POM Snippet</h2></div>
289 <div><a href="#" onclick="$('#managed-repositories-pom-snippet').effect('blind')">${$.i18n.prop('hide')}</a></div>
295 <script id='ko_remote-repositoriesGrid' type='text/x-jquery-tmpl'>
298 {{each(i, columnDefinition) columns}}
299 <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
301 <th>${$.i18n.prop('edit')}</th>
302 <th>${$.i18n.prop('delete')}</th>
303 <th>${$.i18n.prop('remoterepository.downloadremoteindex')}</th>
307 {{each(i, row) itemsOnCurrentPage()}}
309 {{each(j, columnDefinition) columns}}
310 <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
313 <a href="#" data-bind="click: function(){ editRemoteRepository(row) }">${$.i18n.prop('edit')}</a>
316 <a href="#" data-bind="click: function(){ removeRemoteRepository(row) }">
317 <img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
321 <a href="#" data-bind="click: function(){ scheduleDownloadRemoteIndex(row) }">
322 <img src="images/view-refresh.png" title="${$.i18n.prop('remoterepository.downloadremoteindex.now')}"/>
332 <script id="remote-repository-edit-tmpl" type='text/x-jquery-tmpl'>
333 <form id="remote-repository-edit-form">
334 <fieldset id="remote-repository-edit-fieldset">
335 <div class="clearfix">
336 <label for="name">${$.i18n.prop('id')}</label>
339 <span class="uneditable-input">${$data.remoteRepository.id}</span>
341 <input type="text" class="xlarge required" id="id" name="id" size="50"
342 data-bind="value: remoteRepository.id,css:{'uneditable-input': update},readonly:update"/>
346 <div class="clearfix">
347 <label for="name">${$.i18n.prop('name')}</label>
349 <input type="text" class="xlarge required" id="name" name="name" size="50"
350 data-bind="value: remoteRepository.name"/>
353 <div class="clearfix">
354 <label for="url">${$.i18n.prop('url')}</label>
356 <input type="text" class="xlarge required" id="url" name="location" size="50" data-bind="value: remoteRepository.url"/>
359 <div class="clearfix">
360 <label for="userName">${$.i18n.prop('username')}</label>
362 <input type="text" class="xlarge" id="userName" name="userName" size="50" data-bind="value: remoteRepository.indexDirectory"/>
365 <div class="clearfix">
366 <label for="password">${$.i18n.prop('password')}</label>
368 <input type="password" class="xlarge" id="password" name="password" size="50" data-bind="value: remoteRepository.password"/>
371 <div class="clearfix">
372 <label for="timeout">${$.i18n.prop('timeout')}</label>
374 <input type="text" id="timeout" class="digits" name="daysOlder" size="5" data-bind="value: remoteRepository.timeout"/>
378 <div class="clearfix">
379 <label for="layout">${$.i18n.prop('type')}</label>
381 <select id="layout" data-bind="options: availableLayouts,optionsText: 'label',optionsValue:'type',value: remoteRepository.layout"/>
384 <div class="clearfix">
385 <label for="downloadRemoteIndex">${$.i18n.prop('downloadRemoteIndex')}</label>
387 <input type="checkbox" id="downloadRemoteIndex" name="downloadRemoteIndex" size="5" data-bind="checked: remoteRepository.downloadRemoteIndex"/>
391 <div class="clearfix">
392 <label for="remoteIndexUrl">${$.i18n.prop('remoteIndexUrl')}</label>
394 <input type="text" id="remoteIndexUrl" name="remoteIndexUrl" size="5" data-bind="value: remoteRepository.remoteIndexUrl"/>
397 <div class="clearfix">
398 <label for="cronExpression">${$.i18n.prop('cronExpression')}</label>
400 <input type="text" id="cronExpression" name="cronExpression" size="40" data-bind="value: remoteRepository.cronExpression"/>
403 <div class="clearfix">
404 <label for="indexDirectory">${$.i18n.prop('index.directory')}</label>
406 <input type="text" class="xlarge" id="indexDirectory" name="indexDirectory" size="50" data-bind="value: remoteRepository.indexDirectory"/>
409 <div class="clearfix">
410 <label for="remoteDownloadTimeout">${$.i18n.prop('remoteDownloadTimeout')}</label>
412 <input type="text" id="remoteDownloadTimeout" class="digits" name="remoteDownloadTimeout" size="5"
413 data-bind="value: remoteRepository.remoteDownloadTimeout"/>
417 <!-- FIXME proxy id to use -->
419 <div class="clearfix">
420 <label for="downloadRemoteIndexOnStartup">${$.i18n.prop('downloadRemoteIndexOnStartup')}</label>
422 <input type="checkbox" id="downloadRemoteIndexOnStartup" name="downloadRemoteIndexOnStartup"
423 data-bind="checked: remoteRepository.downloadRemoteIndexOnStartup"/>
428 <button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
429 <button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>