display file extension in search

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1526878 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-09-27 12:42:48 +00:00
parent 4d6b0df838
commit 394e1d2c45
2 changed files with 11 additions and 0 deletions

View File

@ -2013,6 +2013,11 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","select2","knockout","kno
headerText: $.i18n.prop('search.artifact.results.classifier'),
rowText: "classifier",
id: "classifier"
},
{
headerText: $.i18n.prop('search.artifact.results.fileExtension'),
rowText: "fileExtension",
id: "fileExtension"
}
],
pageSize: 10,
@ -2021,6 +2026,7 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","select2","knockout","kno
applyAutocompleteOnHeader('artifactId',self);
applyAutocompleteOnHeader('version',self);
applyAutocompleteOnHeader('classifier',self);
applyAutocompleteOnHeader('fileExtension',self);
}
});

View File

@ -471,6 +471,10 @@
<input type="text" class="form-search" id="search-filter-auto-classifier"
placeholder="${$.i18n.prop('search.artifact.result.grid.filter')}"/>
</th>
<th title="${$.i18n.prop('search.artifact.results.fileExtension')}">
<input type="text" class="form-search" id="search-filter-auto-fileExtension"
placeholder="${$.i18n.prop('search.artifact.result.grid.filter')}"/>
</th>
</tr>
</thead>
@ -481,6 +485,7 @@
<td><a href="#" data-bind="click: function(){artifactIdView(row)}">${row.artifactId}</a></td>
<td><a href="#" data-bind="click: function(){artifactDetailView(row)}">${row.version}</a></td>
<td>${row.classifier}</td>
<td>${row.fileExtension}</td>
</tr>
{{/each}}
</tbody>