]> source.dussan.org Git - archiva.git/blob
22a0f8ddcfc6a5f99e05ad01699511a39940234d
[archiva.git] /
1 <!--
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
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
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
17   ~ under the License.
18 -->
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>
23      </div>
24
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>
28        </li>
29        <li id="legacy-artifact-paths-view-tabs-li-edit">
30          <a data-toggle="tab" href="#legacy-artifact-paths-edit">${$.i18n.prop('add')}</a>
31        </li>
32      </ul>
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'">
37            </table>
38            <div id="legacy-artifact-pathsPagination"></div>
39        </div>
40        <div id="legacy-artifact-paths-edit" class="tab-pane" data-bind='template: {name:"legacy-artifact-paths-edit-tmpl"}'></div>
41      </div>
42  </div>
43 </script>
44
45 <script id='ko-legacy-artifact-paths-grid' type='text/html'>
46     <thead>
47     <tr>
48         {{each(i, columnDefinition) columns}}
49         <th>${ columnDefinition.headerText }</th>
50         {{/each}}
51         <th>${$.i18n.prop('delete')}</th>
52     </tr>
53     </thead>
54     <tbody>
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])}}
59           <td>
60               ${val}
61           </td>
62         {{/each}}
63           <td>
64             <a href="#" data-bind="click: function(){ removeLegacyArtifactPath(row) }">
65               <span class="btn btn-danger">
66                 <i class="icon-trash icon-white"/>
67               </span>
68             </a>
69           </td>
70     </tr>
71     {{/each}}
72     </tbody>
73
74 </script>
75
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"/>
84           </div>
85         </div>
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"/>
91           </div>
92         </div>
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"/>
98           </div>
99         </div>
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"/>
105           </div>
106         </div>
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"/>
112           </div>
113         </div>
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"/>
119           </div>
120         </div>
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>
126           </div>
127         </div>
128
129       </fieldset>
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>
133     </form>
134 </script>
135
136 <script id="legacy-artifact-path-delete-warning-tmpl" type="text/html">
137     <div>
138       <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
139     </div>
140 </script>
141
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>
146     </div>
147   </div>
148
149   <ul id="repositories-tabs" class="nav nav-tabs">
150     <li class="active">
151       <a data-toggle="tab" href="#file-types-content">${$.i18n.prop('repository-scanning.file-types.head')}</a>
152     </li>
153     <li>
154       <a data-toggle="tab" href="#consumers-content">${$.i18n.prop('repository-scanning.consumers.head')}</a>
155     </li>
156   </ul>
157
158   <div class="tab-content">
159     <div id="file-types-content" class="tab-pane active" data-bind='template: {name:"file-types-tmpl"}'>
160     </div>
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>
164     </div>
165   </div>
166
167 </script>
168
169 <script id="file-types-tmpl" type="text/html">
170 <div class="accordion" id="accordion-file-types">
171   <div class="span4">
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}&nbsp;<i class="icon-resize-vertical"/></a>
177     </div>
178     <div id="collapse-pattern-${fileType.id}" class="accordion-body collapse">
179     <table class="table table-condensed">
180       {{each(j,pattern) fileType.patterns}}
181       <tr>
182         <td>${pattern}</td>
183         <td>
184           <a href="#" data-bind="click: function(){ removeFileTypePattern(fileType.id(),pattern) }">
185             <span class="btn btn-danger">
186               <i class="icon-trash icon-white"/>
187             </span>
188           </a>
189         </td>
190       </tr>
191       {{/each}}
192       <tr>
193         <td><input type="text" id="pattern-${fileType.id}"/></td>
194         <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"/>
198             </span>
199           </a>
200         </td>
201       </tr>
202     </table>
203     </div>
204   </div>
205   {{/each}}
206   </div>
207 </div>
208 </script>
209
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>
213   </div>
214   <table class="table table-condensed">
215     <thead>
216       <tr>
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>
220       </tr>
221     </thead>
222     <tbody>
223       {{each(i,knownAdminRepositoryConsumer) knownAdminRepositoryConsumers}}
224       <tr>
225         {{if knownAdminRepositoryConsumer.enabled()==true}}
226           <td>
227             <a href="#" data-bind="click: function(){ disableKnowContentConsumer(knownAdminRepositoryConsumer) }">
228               <img src="images/weather-clear-22-22.png"/>
229             </a>
230           </td>
231           {{else}}
232           <td>
233             <a href="#" data-bind="click: function(){ enableKnowContentConsumer(knownAdminRepositoryConsumer) }">
234               <img src="images/dialog-error-22-22.png"/>
235             </a>
236           </td>
237         {{/if}}
238
239         <td>${knownAdminRepositoryConsumer.id}</td>
240         <td>${knownAdminRepositoryConsumer.description}</td>
241       </tr>
242       {{/each}}
243     </tbody>
244   </table>
245 </script>
246
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>
250   </div>
251   <table class="table table-condensed">
252     <thead>
253       <tr>
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>
257       </tr>
258     </thead>
259     <tbody>
260       {{each(i,invalidAdminRepositoryConsumer) invalidAdminRepositoryConsumers}}
261       <tr>
262         {{if invalidAdminRepositoryConsumer.enabled()==true}}
263           <td>
264             <a href="#" data-bind="click: function(){ disableInvalidContentConsumer(invalidAdminRepositoryConsumer) }">
265               <img src="images/weather-clear-22-22.png"/>
266             </a>
267           </td>
268           {{else}}
269           <td>
270             <a href="#" data-bind="click: function(){ enableInvalidContentConsumer(invalidAdminRepositoryConsumer) }">
271               <img src="images/dialog-error-22-22.png"/>
272             </a>
273           </td>
274         {{/if}}
275         <td>${invalidAdminRepositoryConsumer.id}</td>
276         <td>${invalidAdminRepositoryConsumer.description}</td>
277       </tr>
278       {{/each}}
279     </tbody>
280   </table>
281 </script>
282
283 <script id="network-configuration-screen" type="text/html">
284   <div class="page-header">
285     <h4>${$.i18n.prop('network-configuration.header')}</h4>
286   </div>
287   <div id="network-configuration-form" data-bind='template: {name:"network-configuration-form-tmpl"}'></div>
288 </script>
289
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"/>
298           </div>
299         </div>
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"/>
305           </div>
306         </div>
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"/>
311           </div>
312         </div>
313       </fieldset>
314       <button id="network-configuration-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
315     </form>
316 </script>
317
318 <script id="ui-configuration-screen" type="text/html">
319   <div class="page-header">
320     <h4>${$.i18n.prop('ui-configuration.header')}</h4>
321   </div>
322   <div id="ui-configuration-form" data-bind='template: {name:"ui-configuration-form-tmpl"}'></div>
323 </script>
324
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="input-xxlarge required digits" id="applicationUrl" name="applicationUrl" size="8"
332                    data-bind="value: uiConfiguration().applicationUrl"/>
333           </div>
334         </div>
335
336         <div class="control-group">
337           <label class="control-label" for="disableRegistration">${$.i18n.prop('ui-configuration.disableRegistration')}</label>
338           <div class="controls">
339             <input type="checkbox" id="disableRegistration" name="disableRegistration" data-bind="checked: uiConfiguration().disableRegistration"/>
340           </div>
341         </div>
342
343       </fieldset>
344       <button id="ui-configuration-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
345     </form>
346 </script>
347
348 <script id="system-status-main" type="text/html">
349   <div class="page-header">
350     <h4>${$.i18n.prop('system-status.header.version.info')}</h4>
351   </div>
352   <div id="status_version_info">
353     <img src="images/small-spinner.gif"/>
354   </div>
355   <div class="page-header">
356     <h3>${$.i18n.prop('system-status.header.main')}&nbsp;<a href="#" onclick="refreshSystemStatus()"><img src="images/view-refresh-22-22.png"/></a></h3>
357   </div>
358   <div class="page-header">
359     <h4>${$.i18n.prop('system-status.header.queues')}</h4>
360   </div>
361   <div id="status_queues">
362     <img src="images/small-spinner.gif"/>
363   </div>
364
365   <div class="page-header">
366     <h4>${$.i18n.prop('system-status.header.scanning')}&nbsp;<a href="#" onclick="displayScanningStats()"><img src="images/view-refresh.png"/></a></h4>
367   </div>
368   <div id="status_scanning">
369     <img src="images/small-spinner.gif"/>
370   </div>
371
372   <div class="page-header">
373     <h4>${$.i18n.prop('system-status.header.caches')}&nbsp;<a href="#" onclick="displayCacheEntries()"><img src="images/view-refresh.png"/></a></h4>
374   </div>
375   <div id="status_caches">
376       <img src="images/small-spinner.gif"/>
377   </div>
378
379   <div class="page-header">
380     <h4>${$.i18n.prop('system-status.header.memory')}&nbsp;<a href="#" onclick="displayMemoryUsage()"><img src="images/view-refresh.png"/></a></h4>
381   </div>
382   <div id="status_memory_info">
383     <img src="images/small-spinner.gif"/>
384   </div>
385
386   <div class="page-header">
387     <h4>${$.i18n.prop('system-status.header.current.time')}</h4>
388   </div>
389   <div id="status_current_time">
390     <img src="images/small-spinner.gif"/>
391   </div>
392
393 </script>
394
395 <script id="status_caches_tmpl" type="text/html">
396   <a href="#" class="btn btn-warning" onclick="flushAllCaches()">
397     ${$.i18n.prop('system-status.caches.flushAll')}
398   </a>
399   <table class="table table-condensed">
400     <thead>
401       <tr>
402         <th>${$.i18n.prop('system-status.caches.grid.header.key')}</th>
403         <th>${$.i18n.prop('system-status.caches.grid.header.size')}</th>
404         <th>${$.i18n.prop('system-status.caches.grid.header.cacheHits')}</th>
405         <th>${$.i18n.prop('system-status.caches.grid.header.cacheMiss')}</th>
406         <th>${$.i18n.prop('system-status.caches.grid.header.cacheHitRate')}</th>
407           <th>${$.i18n.prop('system-status.caches.grid.header.inMemorySize')}</th>
408         <th>${$.i18n.prop('system-status.caches.grid.header.flush')}</th>
409       </tr>
410     </thead>
411     <tbody>
412     {{each(i,cacheEntry) cacheEntries}}
413       <tr>
414         <td>${cacheEntry.key}</td>
415         <td>${cacheEntry.size}</td>
416         <td>${cacheEntry.cacheHits}</td>
417         <td>${cacheEntry.cacheMiss}</td>
418         <td>${cacheEntry.cacheHitRate}</td>
419         <td>${cacheEntry.inMemorySize}</td>
420         <td>
421           <a href="#" onclick="flushCache('${cacheEntry.key}')">
422             {{if  cacheEntry.size > 0 }}
423               <img src="images/user-trash-full.png"/>
424             {{else}}
425               <img src="images/user-trash.png"/>
426             {{/if}}
427           </a>
428         </td>
429       </tr>
430     {{/each}}
431     </tbody>
432   </table>
433 </script>
434
435
436 <script id="status_queues_tmpl" type="text/html">
437   <table class="table table-condensed">
438     <thead>
439       <tr>
440         <th>${$.i18n.prop('system-status.queues.grid.header.key')}</th>
441         <th>${$.i18n.prop('system-status.queues.grid.header.size')}</th>
442       </tr>
443     </thead>
444     <tbody>
445     {{each(i,queueEntry) queueEntries}}
446       <tr>
447         <td>${queueEntry.key}</td>
448         <td>${queueEntry.entriesNumber}</td>
449       </tr>
450     {{/each}}
451     </tbody>
452   </table>
453 </script>
454
455 <script id="status_scanning_tmpl" type="text/html">
456   {{if repositoryScannerStatisticsList.length == 0}}
457     <h5>No scans in progress.</h5>
458   {{else}}
459     <table class="table table-condensed">
460       <thead>
461         <tr>
462           <th>${$.i18n.prop('system-status.scanning.grid.header.repository')}</th>
463           <th>${$.i18n.prop('system-status.scanning.grid.header.files.processed')}</th>
464           <th>${$.i18n.prop('system-status.scanning.grid.header.files.new')}</th>
465           <th>${$.i18n.prop('system-status.scanning.grid.header.stats')}</th>
466         </tr>
467       </thead>
468       <tbody>
469       {{each(i,repositoryScannerStatistics) repositoryScannerStatisticsList}}
470         <tr>
471           <td>${repositoryScannerStatistics.managedRepository.name()}</td>
472           <td>${repositoryScannerStatistics.totalFileCount}</td>
473           <td>${repositoryScannerStatistics.newFileCount}</td>
474           <td>
475             <blockquote>
476             <table>
477               <thead>
478                 <tr>
479                   <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.name')}</th>
480                   <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.total')}</th>
481                   <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.average')} ms</th>
482                   <th>${$.i18n.prop('system-status.scanning.consumers.grid.header.invocations.time')}</th>
483                 </tr>
484               </thead>
485               <tbody>
486                 {{each(j,consumerScanningStatistics) repositoryScannerStatistics.consumerScanningStatisticsList}}
487                 <tr>
488                   <td>${consumerScanningStatistics.consumerKey}</td>
489                   <td>${consumerScanningStatistics.count}</td>
490                   <td>${consumerScanningStatistics.average}ms</td>
491                   <td>${consumerScanningStatistics.time}ms</td>
492                 </tr>
493                 {{/each}}
494               </tbody>
495             </table>
496             </blockquote>
497           </td>
498         </tr>
499       {{/each}}
500       </tbody>
501     </table>
502   {{/if}}
503 </script>
504
505 <script id="changeAppearance" type="text/html">
506     <div class="page-header">
507         <h2>${$.i18n.prop('appearance-configuration.title-page')}</h2>
508     </div>
509
510     <h2>${$.i18n.prop('appearance-configuration.organisation-details')}</h2>
511
512     <p>
513         ${$.i18n.prop('apperance-configuration.details-description')}
514     </p>
515
516     <form id="appearance-configuration-form-id" class="well form-horizontal">
517         <fieldset id="appearance-configuration-fielset-id">
518             <div class="control-group">
519                 <label class="control-label" for="name">${$.i18n.prop('appearance-configuration.name-label')}</label>
520                 <div class="controls">
521                     <input type="text" class="input-xlarge required" id="name" name="name" size="50"
522                            data-bind="value: organisationInformation().name"/>
523                 </div>
524             </div>
525             <div class="control-group">
526                 <label class="control-label" for="name">${$.i18n.prop('appearance-configuration.url-label')}</label>
527                 <div class="controls">
528                     <input type="text" class="input-xlarge required" id="url" name="url" size="50"
529                            data-bind="value: organisationInformation().url"/>
530                 </div>
531             </div>
532             <div class="control-group">
533                 <label class="control-label"
534                        for="name">${$.i18n.prop('appearance-configuration.logoLocation-label')}</label>
535                 <div class="controls">
536                     <input type="text" class="input-xxlarge" id="logoLocation" name="logoLocation" size="50"
537                            data-bind="value: organisationInformation().logoLocation"/>
538                 </div>
539             </div>
540         </fieldset>
541         <button id="appearance-configuration-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
542     </form>
543 </script>
544
545
546 <script id="file-upload-screen" type="text/html">
547   <div id="file-upload-main" data-bind='template:{name:"file-upload-tmpl"}'></div>
548 </script>
549
550 <script id="file-upload-tmpl" type="text/html">
551   <div class="page-header">
552     <h3>${$.i18n.prop('fileupload.header')}</h3>
553   </div>
554   <form id="fileupload" action="restServices/archivaUiServices/fileUploadService" method="POST"
555         enctype="multipart/form-data" class="well form-horizontal">
556
557     <fieldset id="network-proxy-edit-fieldset">
558       <div class="control-group">
559         <label class="control-label" for="repositoryId">${$.i18n.prop('fileupload.repositoryId')}</label>
560         <div class="controls">
561           <select id="repositoryId"
562                     data-bind="options: managedRepositories, optionsText: 'name',optionsValue:'id',
563                      value: repositoryId"></select>
564          </div>
565         </div>
566       <div class="control-group">
567         <label class="control-label" for="groupId">${$.i18n.prop('fileupload.groupId')}</label>
568         <div class="controls">
569           <input type="text" class="xlarge required" data-bind="value: groupId" id="groupId" name="groupId" size="10" />
570           </div>
571         </div>
572       </div>
573       <div class="control-group">
574         <label class="control-label" for="artifactId">${$.i18n.prop('fileupload.artifactId')}</label>
575         <div class="controls">
576           <input type="text" class="xlarge required" data-bind="value: artifactId" id="artifactId" name="artifactId" size="10" />
577           </div>
578         </div>
579       </div>
580       <div class="control-group">
581         <label class="control-label" for="version">${$.i18n.prop('fileupload.version')}</label>
582         <div class="controls">
583           <input type="text" class="xlarge required" data-bind="value: version" id="version" name="version" size="10" />
584           </div>
585         </div>
586       </div>
587       <div class="control-group">
588         <label class="control-label" for="packaging">${$.i18n.prop('fileupload.packaging')}</label>
589         <div class="controls">
590           <input type="text" class="xlarge required" data-bind="value: packaging" id="packaging" name="packaging" size="10" />
591           </div>
592         </div>
593       </div>
594       <div class="control-group">
595         <label class="control-label" for="generatePom">${$.i18n.prop('fileupload.generatePom')}</label>
596         <div class="controls">
597           <input type="checkbox" class="xlarge" data-bind="value: generatePom" id="generatePom" name="generatePom" />
598           </div>
599         </div>
600       </div>
601     </fieldset>
602
603     <div class="row-fluid fileupload-buttonbar">
604       <div class="span7">
605         <span class="btn btn-success fileinput-button">
606           <i class="icon-plus icon-white"></i>
607           <span>${$.i18n.prop('fileupload.file.choose')}</span>
608           <input type="file" name="files[]" multiple="">
609         </span>
610         <button type="submit" class="btn btn-primary start">
611           <i class="icon-upload icon-white"></i>
612           <span>${$.i18n.prop('fileupload.start')}</span>
613         </button>
614         <button type="reset" class="btn btn-warning cancel">
615           <i class="icon-ban-circle icon-white"></i>
616           <span>${$.i18n.prop('fileupload.cancel')}</span>
617         </button>
618         <button type="button" class="btn btn-danger delete">
619           <i class="icon-trash icon-white"></i>
620           <span>${$.i18n.prop('fileupload.delete')}</span>
621         </button>
622         <input type="checkbox" class="toggle">
623       </div>
624       <div class="span5">
625         <div class="progress progress-success progress-striped active">
626           <div class="bar" style="width:0%;"></div>
627         </div>
628       </div>
629     </div>
630     <div>
631       <a href="#" id="fileupload-save-files">
632         <span class="btn btn-info" data-bind='click: saveArtifacts'>
633           <i class="icon-file icon-white"></i>
634           <span>${$.i18n.prop('fileupload.save')}</span>
635         </span>
636       </a>
637     </div>
638     <div class="fileupload-loading"></div>
639     <br>
640     <table class="table table-striped">
641       <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery" id="uploaded-files-list"></tbody>
642     </table>
643 </form>
644
645 </script>
646
647
648 <script id="template-upload" type="text/html">
649   {% for (var i=0, file; file=o.files[i]; i++) { %}
650     <tr class="template-upload">
651       <td class="name"><span>{%=file.name%}</span></td>
652       <td><input type="text" id="classifier" name="classifier" placeholder="classifier" value=""/></td>
653       <td><span>pomFile:</span><input type="checkbox" id="pomFile" name="pomFile"/></td>
654       <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
655       {% if (file.error) { %}
656       <td class="error" colspan="2">
657         <span class="label label-important">{%=$.i18n.prop('fileupload.error')%}</span>
658         {%=$.i18n.prop('fileupload.errors.'+[file.error]) || file.error%}
659       </td>
660       {% } else if (o.files.valid && !i) { %}
661       <td>
662         <div class="progress progress-success progress-striped active">
663           <div class="bar" style="width:0%;"></div>
664         </div>
665       </td>
666       <td class="start">
667         {% if (!o.options.autoUpload) { %}
668         <button class="btn btn-primary">
669           <i class="icon-upload icon-white"></i>
670           <span>{%=$.i18n.prop('fileupload.start')%}</span>
671         </button>
672         {% } %}
673       </td>
674       {% } else { %}
675       <td colspan="2"></td>
676       {% } %}
677       <td class="cancel">
678       {% if (!i) { %}
679         <button class="btn btn-warning">
680           <i class="icon-ban-circle icon-white"></i>
681           <span>{%=$.i18n.prop('fileupload.cancel')%}</span>
682         </button>
683       {% } %}
684       </td>
685     </tr>
686   {% } %}
687 </script>
688
689 <script id="template-download" type="text/html">
690   {% for (var i=0, file; file=o.files[i]; i++) { %}
691   <tr class="template-download">
692       <td class="name"><span>{%=file.name%}</span></td>
693       <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
694     {% if (file.error) { %}
695       <td class="error" colspan="2">
696         <span class="label label-important">{%=$.i18n.prop('fileupload.error')%}</span>
697         {%=$.i18n.prop('fileupload.errors.'+[file.error]) || file.error%}
698       </td>
699     {% } else { %}
700       <td colspan="2"></td>
701     {% } %}
702       <td class="delete">
703         <button class="btn btn-danger" data-type="{%=file.deleteType%}"
704                 data-url="restServices/archivaUiServices/fileUploadService/{%=file.deleteUrl%}">
705           <i class="icon-trash icon-white"></i>
706           <span>{%=$.i18n.prop('fileupload.destroy')%}</span>
707         </button>
708         <input type="checkbox" name="delete" value="1">
709       </td>
710     </tr>
711 {% } %}
712 </script>
713
714 <script id="report-base" type="text/html">
715   <div class="page-header">
716     <h2>${$.i18n.prop('report.title')}</h2>
717   </div>
718
719     <ul class="nav nav-tabs">
720       <li class="active" id="report-stat-tab-li"><a href="#report-stat-tab-content" data-toggle="tab">${$.i18n.prop('report.statistics.title')}</a></li>
721       <li id="report-health-tab-li"><a href="#report-health-tab-content" data-toggle="tab">${$.i18n.prop('report.health.title')}</a></li>
722       <li id="report-result-tab-li" class="hide"><a href="#report-result" data-toggle="tab">${$.i18n.prop('report.result.title')}</a></li>
723     </ul>
724
725     <div class="tab-content">
726       <div class="tab-pane active" id="report-stat-tab-content">
727         <form class="form-horizontal" id="report-statistics-form-id">
728           <fieldset id="form-statistics-report">
729             <div class="row-fluid">
730               <div class="span6 row-fluid">
731                 <div class="row-fluid" id="repositoriesErrorMessage"></div>
732                 <div class="row-fluid">
733                   <div class="span6 dotted">
734                     <h5>${$.i18n.prop('report.statistics.selected-repositories.label')}</h5>
735                     <hr/>
736                     <div style="min-height: 40px"
737                          data-bind="sortable: { template: 'statistics-repositories-order-tmpl', data:statisticsReport().repositories}">
738                     </div>
739                   </div>
740                   <div class="span6 dotted">
741                     <h5>${$.i18n.prop('repository.groups.available-repositories.label')}</h5>
742                     <hr/>
743                     <div style="min-height: 40px"
744                          data-bind="sortable: {template: 'statistics-repositories-order-tmpl',data:availableRepositories}">
745                     </div>
746                 </div>
747                 </div>
748               </div>
749               <div class="span6 well">
750                   <div class="control-group">
751                       <label for="rowCountStatistics" class="control-label">
752                           ${$.i18n.prop('report.statistics.row-count.label')}
753                       </label>
754                       <div class="controls">
755                           <input type="text" id="rowCountStatistics" name="rowCountStatistics" class="input-small"
756                                  data-bind="value: statisticsReport().rowCount"/>
757
758                           <a class="btn btn-warning btn-mini" id="rowcount-info-button"
759                                   data-original-title="${$.i18n.prop('report.statistics.rowCount.explanations-title')}"
760                                   data-content="${$.i18n.prop('report.statistics.rowCount.explanations')}"
761                                   data-placement="left" data-toggle="button">
762                               <i class="icon-question-sign icon-white"></i>
763                           </a>
764                       </div>
765                   </div>
766                   <div class="control-group">
767                       <label for="startDate" class="control-label">
768                           ${$.i18n.prop('report.statistics.start-date.label')}
769                       </label>
770                       <div class="controls">
771                           <input type="text" id="startDate" name="startDate" class="input-small"
772                                  data-bind="value: statisticsReport().startDate"/>
773                       </div>
774                   </div>
775                   <div class="control-group">
776                       <label for="endDate" class="control-label">
777                           ${$.i18n.prop('report.statistics.end-date.label')}
778                       </label>
779                       <div class="controls">
780                           <input type="text" id="endDate" name="endDate" class="input-small"
781                                  data-bind="value: statisticsReport().endDate"/>
782                       </div>
783                   </div>
784               </div>
785             </div>
786               <div class="form-actions">
787                   <button class="btn btn-primary" data-bind="click: showStatistics">
788                       ${$.i18n.prop('report.statistics.btn-view')}
789                   </button>
790               </div>
791           </fieldset>
792         </form>
793       </div>
794
795       <div class="tab-pane" id="report-health-tab-content">
796         <form class="form-horizontal" id="report-health-form-id">
797           <fieldset id="form-health-report">
798             <div class="control-group">
799               <label for="rowCountHealth" class="control-label">
800                 ${$.i18n.prop('report.statistics.row-count.label')}
801               </label>
802               <div class="controls">
803                 <input type="text" id="rowCountHealth" name="rowCountHealth" class="input-small required"
804                         data-bind="value: healthReport().rowCount"/>
805               </div>
806             </div>
807             <div class="control-group">
808               <label for="groupId" class="control-label">
809                 ${$.i18n.prop('report.health.groupId.label')}
810               </label>
811               <div class="controls">
812                 <input type="text" id="groupId" name="groupId" data-bind="value: healthReport().groupId"/>
813               </div>
814             </div>
815             <div class="control-group">
816               <label for="repositoryId" class="control-label">
817                 ${$.i18n.prop('report.health.repositoryId.label')}
818               </label>
819               <div class="controls">
820                 <select id="repositoryId" name="repositoryId" data-bind="value: healthReport().repositoryId"
821                         class="required">
822                     <option value="all">${$.i18n.prop('report.select.all-repositories')}</option>
823                     {{each(i, repoId) repositoriesList}}
824                       <option value="${repoId}">${repoId}</option>
825                     {{/each}}
826                 </select>
827               </div>
828             </div>
829             <div class="form-actions">
830               <a href="#" class="btn btn-primary" data-bind="click: showHealth">
831                 ${$.i18n.prop('report.health.btn-view')}
832               </a>
833             </div>
834           </fieldset>
835         </form>
836       </div>
837
838       <div class="tab-pane" id="report-result">
839       </div>
840     </div>
841 </script>
842
843 <script id="statistics-repositories-order-tmpl" type="text/html">
844     <div class="well draggable-item">
845         ${$data}
846     </div>
847 </script>
848
849 <script id="report-health" type="text/html">
850     <div class="page-header">
851         <h3>${$.i18n.prop('report.health.title')}</h3>
852     </div>
853     <table class="table table-bordered table-striped"
854            data-bind="simpleGrid: tableReportViewModel,simpleGridTemplate:'table-report-tmpl',pageLinksId:'reportHealthPageLinkId'">
855     </table>
856     <div id="reportHealthPageLinkId"></div>
857 </script>
858
859 <script id="report-statistics" type="text/html">
860     <div class="page-header">
861         <h3>${$.i18n.prop('report.statistics.title')}</h3>
862     </div>
863     <table class="table table-bordered table-striped"
864            data-bind="simpleGrid: tableReportViewModel,simpleGridTemplate:'table-report-tmpl',pageLinksId:'reportStatisticsPageLinkId'">
865     </table>
866     <div id="reportStatisticsPageLinkId"></div>
867 </script>
868 <script id="table-report-tmpl" type="text/html">
869     <thead>
870     {{each(i, columnDefinition) columns}}
871       <th>${ columnDefinition.headerText }</th>
872     {{/each}}
873     </thead>
874     <tbody>
875     {{each(i, row) itemsOnCurrentPage()}}
876       <tr>
877         {{each(i, columnDefinition) columns}}
878           {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
879           <td>
880               ${val}
881           </td>
882         {{/each}}
883       </tr>
884     {{/each}}
885     </tbody>
886 </script>