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="legacy-artifact-path-main" type="text/html">
20 <div id="legacy-artifact-path-screen">
21 <div class="page-header">
22 <h2>${$.i18n.prop('legacy-artifact-paths.list')}</h2>
25 <ul id="legacy-artifact-paths-view-tabs" class="nav nav-tabs">
26 <li id="legacy-artifact-paths-view-tabs-li-grid">
27 <a data-toggle="tab" href="#legacy-artifact-paths-view" id="legacy-artifact-paths-view-tabs-a-grid">${$.i18n.prop('legacy-artifact-paths.grid.tab.title')}</a>
29 <li id="legacy-artifact-paths-view-tabs-li-edit">
30 <a data-toggle="tab" href="#legacy-artifact-paths-edit">${$.i18n.prop('add')}</a>
33 <div id="legacy-artifact-paths-view-tabs-content" class="tab-content">
34 <div id="legacy-artifact-paths-view" class="tab-pane">
35 <table class="table table-striped table-bordered" id="legacy-artifact-paths-table"
36 data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko-legacy-artifact-paths-grid',pageLinksId:'legacy-artifact-pathsPagination'">
38 <div id="legacy-artifact-pathsPagination"></div>
40 <div id="legacy-artifact-paths-edit" class="tab-pane" data-bind='template: {name:"legacy-artifact-paths-edit-tmpl"}'></div>
45 <script id='ko-legacy-artifact-paths-grid' type='text/html'>
48 {{each(i, columnDefinition) columns}}
49 <th>${ columnDefinition.headerText }</th>
51 <th>${$.i18n.prop('delete')}</th>
55 {{each(i, row) itemsOnCurrentPage()}}
56 <tr data-bind="css:{ 'modified': row.modified()}">
57 {{each(j, columnDefinition) columns}}
58 {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
64 <a href="#" data-bind="click: function(){ removeLegacyArtifactPath(row) }">
65 <span class="btn btn-danger">
66 <i class="icon-trash icon-white"/>
76 <script id="legacy-artifact-paths-edit-tmpl" type="text/html">
77 <form id="legacy-artifact-paths-edit-form" class="well form-horizontal">
78 <fieldset id="legacy-artifact-paths-edit-fieldset">
79 <div class="control-group">
80 <label class="control-label" for="groupId">${$.i18n.prop('legacy-artifact-paths.groupId')}</label>
81 <div class="controls">
82 <input type="text" class="xlarge required" id="groupId" name="groupId" size="8"
83 data-bind="value: legacyArtifactPath.groupId"/>
86 <div class="control-group">
87 <label class="control-label" for="artifactId">${$.i18n.prop('legacy-artifact-paths.artifactId')}</label>
88 <div class="controls">
89 <input type="text" class="xlarge required" id="artifactId" name="artifactId" size="8"
90 data-bind="value: legacyArtifactPath.artifactId"/>
93 <div class="control-group">
94 <label class="control-label" for="version">${$.i18n.prop('legacy-artifact-paths.version')}</label>
95 <div class="controls">
96 <input type="text" class="xlarge required" id="version" name="version" size="8"
97 data-bind="value: legacyArtifactPath.version"/>
100 <div class="control-group">
101 <label class="control-label" for="classifier">${$.i18n.prop('legacy-artifact-paths.classifier')}</label>
102 <div class="controls">
103 <input type="text" class="xlarge" id="classifier" name="classifier" size="8"
104 data-bind="value: legacyArtifactPath.classifier"/>
107 <div class="control-group">
108 <label class="control-label" for="type">${$.i18n.prop('legacy-artifact-paths.type')}</label>
109 <div class="controls">
110 <input type="text" class="xlarge required" id="type" name="type" size="8"
111 data-bind="value: legacyArtifactPath.type"/>
114 <div class="control-group">
115 <label class="control-label" for="path">${$.i18n.prop('legacy-artifact-paths.path')}</label>
116 <div class="controls">
117 <input type="text" class="xlarge required" id="path" name="path" size="8"
118 data-bind="value: legacyArtifactPath.path"/>
121 <div class="control-group">
122 <label class="control-label" for="artifact">${$.i18n.prop('legacy-artifact-paths.artifact')}</label>
123 <div class="controls">
124 <span title="calculated from values" class="uneditable-input"
125 id="artifact" data-bind="text: legacyArtifactPath.artifact"></span>
130 <button id="network-proxy-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
131 <button id="network-proxy-btn-cancel" data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
132 <button id="network-proxy-btn-calculate-path" data-bind="click: calculatePath" class="btn btn-success">${$.i18n.prop('legacy-artifact-paths.calculatePath')}</button>
136 <script id="legacy-artifact-path-delete-warning-tmpl" type="text/html">
138 <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
142 <script id="repository-scanning-main" type="text/html">
143 <div id="repository-scanning-screen">
144 <div class="page-header">
145 <h2>${$.i18n.prop('repository-scanning.head')}</h2>
149 <ul id="repositories-tabs" class="nav nav-tabs">
151 <a data-toggle="tab" href="#file-types-content">${$.i18n.prop('repository-scanning.file-types.head')}</a>
154 <a data-toggle="tab" href="#consumers-content">${$.i18n.prop('repository-scanning.consumers.head')}</a>
158 <div class="tab-content">
159 <div id="file-types-content" class="tab-pane active" data-bind='template: {name:"file-types-tmpl"}'>
161 <div id="consumers-content" class="tab-pane">
162 <div id="consumers-known-content" data-bind='template: {name:"consumers-known-content-tmpl"}'></div>
163 <div id="consumers-invalid-content" data-bind='template: {name:"consumers-invalid-content-tmpl"}'></div>
169 <script id="file-types-tmpl" type="text/html">
170 <div class="accordion" id="accordion-file-types">
172 {{each(i, fileType) fileTypes}}
173 <div class="accordion-group">
174 <div class="accordion-heading">
175 <a class="accordion-toggle" href="#collapse-pattern-${fileType.id}"
176 data-parent="#accordion-file-types" data-toggle="collapse">${fileType.id} <i class="icon-resize-vertical"/></a>
178 <div id="collapse-pattern-${fileType.id}" class="accordion-body collapse">
179 <table class="table table-condensed">
180 {{each(j,pattern) fileType.patterns}}
184 <a href="#" data-bind="click: function(){ removeFileTypePattern(fileType.id(),pattern) }">
185 <span class="btn btn-danger">
186 <i class="icon-trash icon-white"/>
193 <td><input type="text" id="pattern-${fileType.id}"/></td>
195 <a href="#" data-bind="click: function(){addFileTypePattern(fileType.id())}">
196 <span class="btn btn-success">
197 <i class="icon-plus-sign icon-white"/>
210 <script id="consumers-known-content-tmpl" type="text/html">
211 <div class="page-header">
212 <h4>${$.i18n.prop('repository-scanning.consumers.know-content.head')}</h4>
214 <table class="table table-condensed">
217 <th>${$.i18n.prop('repository-scanning.consumers.grid.enabled')}</th>
218 <th>${$.i18n.prop('repository-scanning.consumers.grid.id')}</th>
219 <th>${$.i18n.prop('repository-scanning.consumers.grid.description')}</th>
223 {{each(i,knownAdminRepositoryConsumer) knownAdminRepositoryConsumers}}
225 {{if knownAdminRepositoryConsumer.enabled()==true}}
227 <a href="#" data-bind="click: function(){ disableKnowContentConsumer(knownAdminRepositoryConsumer) }">
228 <img src="images/weather-clear-22-22.png"/>
233 <a href="#" data-bind="click: function(){ enableKnowContentConsumer(knownAdminRepositoryConsumer) }">
234 <img src="images/dialog-error-22-22.png"/>
239 <td>${knownAdminRepositoryConsumer.id}</td>
240 <td>${knownAdminRepositoryConsumer.description}</td>
247 <script id="consumers-invalid-content-tmpl" type="text/html">
248 <div class="page-header">
249 <h4>${$.i18n.prop('repository-scanning.consumers.invalid-content.head')}</h4>
251 <table class="table table-condensed">
254 <th>${$.i18n.prop('repository-scanning.consumers.grid.enabled')}</th>
255 <th>${$.i18n.prop('repository-scanning.consumers.grid.id')}</th>
256 <th>${$.i18n.prop('repository-scanning.consumers.grid.description')}</th>
260 {{each(i,invalidAdminRepositoryConsumer) invalidAdminRepositoryConsumers}}
262 {{if invalidAdminRepositoryConsumer.enabled()==true}}
264 <a href="#" data-bind="click: function(){ disableInvalidContentConsumer(invalidAdminRepositoryConsumer) }">
265 <img src="images/weather-clear-22-22.png"/>
270 <a href="#" data-bind="click: function(){ enableInvalidContentConsumer(invalidAdminRepositoryConsumer) }">
271 <img src="images/dialog-error-22-22.png"/>
275 <td>${invalidAdminRepositoryConsumer.id}</td>
276 <td>${invalidAdminRepositoryConsumer.description}</td>
283 <script id="network-configuration-screen" type="text/html">
284 <div class="page-header">
285 <h4>${$.i18n.prop('network-configuration.header')}</h4>
287 <div id="network-configuration-form" data-bind='template: {name:"network-configuration-form-tmpl"}'></div>
290 <script id="network-configuration-form-tmpl" type="text/html">
291 <form id="network-configuration-edit-form" class="well form-horizontal">
292 <fieldset id="network-configuration-edit-fieldset">
293 <div class="control-group">
294 <label class="control-label" for="maxTotal">${$.i18n.prop('network-configuration.maxTotal')}</label>
295 <div class="controls">
296 <input type="text" class="xlarge required digits" id="maxTotal" name="maxTotal" size="8"
297 data-bind="value: networkConfiguration().maxTotal"/>
300 <div class="control-group">
301 <label class="control-label" for="maxTotal">${$.i18n.prop('network-configuration.maxTotalPerHost')}</label>
302 <div class="controls">
303 <input type="text" class="xlarge required digits" id="maxTotalPerHost" name="maxTotalPerHost" size="8"
304 data-bind="value: networkConfiguration().maxTotalPerHost"/>
307 <div class="control-group">
308 <label class="control-label" for="usePooling">${$.i18n.prop('network-configuration.usePooling')}</label>
309 <div class="controls">
310 <input type="checkbox" id="usePooling" name="usePooling" data-bind="checked: networkConfiguration().usePooling"/>
314 <button id="network-configuration-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
318 <script id="ui-configuration-screen" type="text/html">
319 <div class="page-header">
320 <h4>${$.i18n.prop('ui-configuration.header')}</h4>
322 <div id="ui-configuration-form" data-bind='template: {name:"ui-configuration-form-tmpl"}'></div>
325 <script id="ui-configuration-form-tmpl" type="text/html">
326 <form id="ui-configuration-edit-form" class="well form-horizontal">
327 <fieldset id="ui-configuration-edit-fieldset">
328 <div class="control-group">
329 <label class="control-label" for="maxTotal">${$.i18n.prop('ui-configuration.applicationUrl')}</label>
330 <div class="controls">
331 <input type="text" class="xlarge required digits" id="applicationUrl" name="applicationUrl" size="8"
332 data-bind="value: uiConfiguration().applicationUrl"/>
336 <button id="ui-configuration-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
340 <script id="system-status-main" type="text/html">
341 <div class="page-header">
342 <h4>${$.i18n.prop('system-status.header.version.info')}</h4>
344 <div id="status_version_info">
345 <img src="images/small-spinner.gif"/>
347 <div class="page-header">
348 <h3>${$.i18n.prop('system-status.header.main')} <a href="#" onclick="refreshSystemStatus()"><img src="images/view-refresh-22-22.png"/></a></h3>
350 <div class="page-header">
351 <h4>${$.i18n.prop('system-status.header.queues')}</h4>
353 <div id="status_queues">
354 <img src="images/small-spinner.gif"/>
357 <div class="page-header">
358 <h4>${$.i18n.prop('system-status.header.scanning')} <a href="#" onclick="displayScanningStats()"><img src="images/view-refresh.png"/></a></h4>
360 <div id="status_scanning">
361 <img src="images/small-spinner.gif"/>
364 <div class="page-header">
365 <h4>${$.i18n.prop('system-status.header.caches')} <a href="#" onclick="displayCacheEntries()"><img src="images/view-refresh.png"/></a></h4>
367 <div id="status_caches">
368 <img src="images/small-spinner.gif"/>
371 <div class="page-header">
372 <h4>${$.i18n.prop('system-status.header.memory')} <a href="#" onclick="displayMemoryUsage()"><img src="images/view-refresh.png"/></a></h4>
374 <div id="status_memory_info">
375 <img src="images/small-spinner.gif"/>
378 <div class="page-header">
379 <h4>${$.i18n.prop('system-status.header.current.time')}</h4>
381 <div id="status_current_time">
382 <img src="images/small-spinner.gif"/>
387 <script id="status_caches_tmpl" type="text/html">
388 <a href="#" class="btn btn-warning" onclick="flushAllCaches()">
389 ${$.i18n.prop('system-status.caches.flushAll')}
391 <table class="table table-condensed">
394 <th>${$.i18n.prop('system-status.caches.grid.header.key')}</th>
395 <th>${$.i18n.prop('system-status.caches.grid.header.size')}</th>
396 <th>${$.i18n.prop('system-status.caches.grid.header.cacheHits')}</th>
397 <th>${$.i18n.prop('system-status.caches.grid.header.cacheMiss')}</th>
398 <th>${$.i18n.prop('system-status.caches.grid.header.cacheHitRate')}</th>
399 <th>${$.i18n.prop('system-status.caches.grid.header.flush')}</th>
403 {{each(i,cacheEntry) cacheEntries}}
405 <td>${cacheEntry.key}</td>
406 <td>${cacheEntry.size}</td>
407 <td>${cacheEntry.cacheHits}</td>
408 <td>${cacheEntry.cacheMiss}</td>
409 <td>${cacheEntry.cacheHitRate}</td>
411 <a href="#" onclick="flushCache('${cacheEntry.key}')">
412 {{if cacheEntry.size > 0 }}
413 <img src="images/user-trash-full.png"/>
415 <img src="images/user-trash.png"/>
426 <script id="status_queues_tmpl" type="text/html">
427 <table class="table table-condensed">
430 <th>${$.i18n.prop('system-status.queues.grid.header.key')}</th>
431 <th>${$.i18n.prop('system-status.queues.grid.header.size')}</th>
435 {{each(i,queueEntry) queueEntries}}
437 <td>${queueEntry.key}</td>
438 <td>${queueEntry.entriesNumber}</td>
445 <script id="status_scanning_tmpl" type="text/html">
446 {{if repositoryScannerStatisticsList.length == 0}}
447 <h5>No scans in progress.</h5>
449 <table class="table table-condensed">
452 <th>${$.i18n.prop('system-status.scanning.grid.header.repository')}</th>
453 <th>${$.i18n.prop('system-status.scanning.grid.header.files.processed')}</th>
454 <th>${$.i18n.prop('system-status.scanning.grid.header.files.new')}</th>
455 <th>${$.i18n.prop('system-status.scanning.grid.header.stats')}</th>
459 {{each(i,repositoryScannerStatistics) repositoryScannerStatisticsList}}
461 <td>${repositoryScannerStatistics.managedRepository.name()}</td>
462 <td>${repositoryScannerStatistics.totalFileCount}</td>
463 <td>${repositoryScannerStatistics.newFileCount}</td>
469 <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.name')}</th>
470 <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.total')}</th>
471 <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.average')} ms</th>
472 <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.invocations.time')}</th>
476 {{each(j,consumerScanningStatistics) repositoryScannerStatistics.consumerScanningStatisticsList}}
478 <td>${consumerScanningStatistics.consumerKey}</td>
479 <td>${consumerScanningStatistics.count}</td>
480 <td>${consumerScanningStatistics.average}ms</td>
481 <td>${consumerScanningStatistics.time}ms</td>
495 <script id="changeAppearance" type="text/html">
496 <div class="page-header">
497 <h2>${$.i18n.prop('appearance-configuration.title-page')}</h2>
500 <h2>${$.i18n.prop('appearance-configuration.organisation-details')}</h2>
503 ${$.i18n.prop('apperance-configuration.details-description')}
506 <form id="appearance-configuration-form-id" class="well form-horizontal">
507 <fieldset id="appearance-configuration-fielset-id">
508 <div class="control-group">
509 <label class="control-label" for="name">${$.i18n.prop('appearance-configuration.name-label')}</label>
510 <div class="controls">
511 <input type="text" class="xlarge required" id="name" name="name" size="50"
512 data-bind="value: organisationInformation().name"/>
515 <div class="control-group">
516 <label class="control-label" for="name">${$.i18n.prop('appearance-configuration.url-label')}</label>
517 <div class="controls">
518 <input type="text" class="xlarge required" id="url" name="url" size="50"
519 data-bind="value: organisationInformation().url"/>
522 <div class="control-group">
523 <label class="control-label"
524 for="name">${$.i18n.prop('appearance-configuration.logoLocation-label')}</label>
525 <div class="controls">
526 <input type="text" class="xlarge" id="logoLocation" name="logoLocation" size="50"
527 data-bind="value: organisationInformation().logoLocation"/>
531 <button id="appearance-configuration-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
536 <script id="file-upload-screen" type="text/html">
537 <div id="file-upload-main" data-bind='template:{name:"file-upload-tmpl"}'></div>
540 <script id="file-upload-tmpl" type="text/html">
541 <div class="page-header">
542 <h3>${$.i18n.prop('fileupload.header')}</h3>
544 <form id="fileupload" action="restServices/archivaUiServices/fileUploadService" method="POST"
545 enctype="multipart/form-data" class="well form-horizontal">
547 <fieldset id="network-proxy-edit-fieldset">
548 <div class="control-group">
549 <label class="control-label" for="repositoryId">${$.i18n.prop('fileupload.repositoryId')}</label>
550 <div class="controls">
551 <select id="repositoryId"
552 data-bind="options: managedRepositories, optionsText: 'name',optionsValue:'id',
553 value: repositoryId"></select>
556 <div class="control-group">
557 <label class="control-label" for="groupId">${$.i18n.prop('fileupload.groupId')}</label>
558 <div class="controls">
559 <input type="text" class="xlarge required" data-bind="value: groupId" id="groupId" name="groupId" size="10" />
563 <div class="control-group">
564 <label class="control-label" for="artifactId">${$.i18n.prop('fileupload.artifactId')}</label>
565 <div class="controls">
566 <input type="text" class="xlarge required" data-bind="value: artifactId" id="artifactId" name="artifactId" size="10" />
570 <div class="control-group">
571 <label class="control-label" for="version">${$.i18n.prop('fileupload.version')}</label>
572 <div class="controls">
573 <input type="text" class="xlarge required" data-bind="value: version" id="version" name="version" size="10" />
577 <div class="control-group">
578 <label class="control-label" for="packaging">${$.i18n.prop('fileupload.packaging')}</label>
579 <div class="controls">
580 <input type="text" class="xlarge required" data-bind="value: packaging" id="packaging" name="packaging" size="10" />
584 <div class="control-group">
585 <label class="control-label" for="generatePom">${$.i18n.prop('fileupload.generatePom')}</label>
586 <div class="controls">
587 <input type="checkbox" class="xlarge" data-bind="value: generatePom" id="generatePom" name="generatePom" />
593 <div class="row-fluid fileupload-buttonbar">
595 <span class="btn btn-success fileinput-button">
596 <i class="icon-plus icon-white"></i>
597 <span>${$.i18n.prop('fileupload.file.choose')}</span>
598 <input type="file" name="files[]" multiple="">
600 <button type="submit" class="btn btn-primary start">
601 <i class="icon-upload icon-white"></i>
602 <span>${$.i18n.prop('fileupload.start')}</span>
604 <button type="reset" class="btn btn-warning cancel">
605 <i class="icon-ban-circle icon-white"></i>
606 <span>${$.i18n.prop('fileupload.cancel')}</span>
608 <button type="button" class="btn btn-danger delete">
609 <i class="icon-trash icon-white"></i>
610 <span>${$.i18n.prop('fileupload.delete')}</span>
612 <input type="checkbox" class="toggle">
615 <div class="progress progress-success progress-striped active">
616 <div class="bar" style="width:0%;"></div>
621 <a href="#" id="fileupload-save-files">
622 <span class="btn btn-info" data-bind='click: saveArtifacts'>
623 <i class="icon-file icon-white"></i>
624 <span>${$.i18n.prop('fileupload.save')}</span>
628 <div class="fileupload-loading"></div>
630 <table class="table table-striped">
631 <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody>
638 <script id="template-upload" type="text/html">
639 {% for (var i=0, file; file=o.files[i]; i++) { %}
640 <tr class="template-upload">
641 <td class="name"><span>{%=file.name%}</span></td>
642 <td><input type="text" id="classifier" name="classifier" placeholder="classifier" value=""/></td>
643 <td><span>pomFile:</span><input type="checkbox" id="pomFile" name="pomFile"/></td>
644 <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
645 {% if (file.error) { %}
646 <td class="error" colspan="2">
647 <span class="label label-important">{%=$.i18n.prop('fileupload.error')%}</span>
648 {%=$.i18n.prop('fileupload.errors.'+[file.error]) || file.error%}
650 {% } else if (o.files.valid && !i) { %}
652 <div class="progress progress-success progress-striped active">
653 <div class="bar" style="width:0%;"></div>
657 {% if (!o.options.autoUpload) { %}
658 <button class="btn btn-primary">
659 <i class="icon-upload icon-white"></i>
660 <span>{%=$.i18n.prop('fileupload.start')%}</span>
665 <td colspan="2"></td>
669 <button class="btn btn-warning">
670 <i class="icon-ban-circle icon-white"></i>
671 <span>{%=$.i18n.prop('fileupload.cancel')%}</span>
679 <script id="template-download" type="text/html">
680 {% for (var i=0, file; file=o.files[i]; i++) { %}
681 <tr class="template-download">
682 <td class="name"><span>{%=file.name%}</span></td>
683 <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
684 {% if (file.error) { %}
685 <td class="error" colspan="2">
686 <span class="label label-important">{%=$.i18n.prop('fileupload.error')%}</span>
687 {%=$.i18n.prop('fileupload.errors.'+[file.error]) || file.error%}
690 <td colspan="2"></td>
693 <button class="btn btn-danger" data-type="{%=file.deleteType%}"
694 data-url="restServices/archivaUiServices/fileUploadService/{%=file.deleteUrl%}">
695 <i class="icon-trash icon-white"></i>
696 <span>{%=$.i18n.prop('fileupload.destroy')%}</span>
698 <input type="checkbox" name="delete" value="1">