Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Do not display 'Latest: $version' for collapsed search results
Browse files Browse the repository at this point in the history
The 'latest' version may be wrong because search is timeboxed and does
not always gather all available versions.
  • Loading branch information
nabcos committed Dec 11, 2012
1 parent 0e80dab commit 743880e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -266,8 +266,8 @@ Ext.extend(Sonatype.repoServer.SearchResultGrid, Ext.grid.GridPanel, {
latest = record.get('latestSnapshot');
}

return 'Latest: ' + latest + ' <a href="#nexus-search;gav~' + record.get('groupId') + '~' + record.get('artifactId')
+ '~~~~kw,versionexpand " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">(Show All Versions)</a>';
return '<a href="#nexus-search;gav~' + record.get('groupId') + '~' + record.get('artifactId')
+ '~~~~kw,versionexpand " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Show All Versions</a>';
},
formatDownloadLinks : function(value, p, record, rowIndex, colIndex, store) {
var hitIndex = 0;
Expand Down

0 comments on commit 743880e

Please sign in to comment.