mirror of https://github.com/apache/archiva.git
fix browse for directories
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293946 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9ea612361f
commit
a294aff1b7
|
@ -39,28 +39,28 @@ public interface BrowseService
|
|||
@Path( "rootGroups" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noRestriction = true, noPermission = false )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = true )
|
||||
BrowseResult getRootGroups()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "browseGroupId/{groupId}" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noRestriction = true, noPermission = false )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = true )
|
||||
BrowseResult browseGroupId( @PathParam( "groupId" ) String groupId )
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "versionsList/{g}/{a}" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noRestriction = true, noPermission = false )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = true )
|
||||
VersionsList getVersionsList( @PathParam( "g" ) String groupId, @PathParam( "a" ) String artifactId )
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path( "projectVersionMetadata/{g}/{a}" )
|
||||
@GET
|
||||
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
|
||||
@RedbackAuthorization( noRestriction = true, noPermission = false )
|
||||
@RedbackAuthorization( noPermission = true, noRestriction = true )
|
||||
ProjectVersionMetadata getProjectVersionMetadata( @PathParam( "g" ) String groupId,
|
||||
@PathParam( "a" ) String artifactId )
|
||||
throws ArchivaRestServiceException;
|
||||
|
|
|
@ -129,7 +129,6 @@ $(function() {
|
|||
}
|
||||
|
||||
displayArtifactDetail=function(groupId,artifactId,parentBrowseViewModel,restUrl){
|
||||
$.log("displayArtifactDetail:"+groupId+":"+artifactId);
|
||||
var artifactDetailViewModel=new ArtifactDetailViewModel(groupId,artifactId);
|
||||
var mainContent = $("#main-content");
|
||||
mainContent.find("#browse_result").hide();
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
</li>
|
||||
{{/if}}
|
||||
{{each(i,browseResultEntry) browseResultEntries}}
|
||||
{{if browseResultEntry.project}}
|
||||
{{if browseResultEntry.project=='true'}}
|
||||
<li class="browse-list-project" title="artifact" data-bind="click:function(){displayProjectEntry(browseResultEntry.name)}">
|
||||
{{else}}
|
||||
<li class="browse-list" data-bind="click:function(){displayGroupId(browseResultEntry.name)}">
|
||||
|
|
Loading…
Reference in New Issue