mirror of https://github.com/apache/archiva.git
add favico when browsing repositories
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403559 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ec1470cd94
commit
c3254df34b
|
@ -22,11 +22,12 @@ package org.apache.archiva.webdav;
|
||||||
import org.apache.jackrabbit.webdav.DavSession;
|
import org.apache.jackrabbit.webdav.DavSession;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
public class ArchivaDavSession
|
public class ArchivaDavSession
|
||||||
implements DavSession
|
implements DavSession
|
||||||
{
|
{
|
||||||
private final HashSet<String> lockTokens = new HashSet<String>();
|
private final Set<String> lockTokens = new HashSet<String>();
|
||||||
|
|
||||||
public void addLockToken( String token )
|
public void addLockToken( String token )
|
||||||
{
|
{
|
||||||
|
@ -35,7 +36,7 @@ public class ArchivaDavSession
|
||||||
|
|
||||||
public String[] getLockTokens()
|
public String[] getLockTokens()
|
||||||
{
|
{
|
||||||
return (String[]) lockTokens.toArray( new String[lockTokens.size()] );
|
return lockTokens.toArray( new String[lockTokens.size()] );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeLockToken( String token )
|
public void removeLockToken( String token )
|
||||||
|
|
|
@ -103,6 +103,7 @@ public class IndexWriter
|
||||||
writer.println( "th td:nth-child(2){width:150px;}" );
|
writer.println( "th td:nth-child(2){width:150px;}" );
|
||||||
writer.println( "th td:nth-child(3){width:150px;}" );
|
writer.println( "th td:nth-child(3){width:150px;}" );
|
||||||
writer.println( "</style>" );
|
writer.println( "</style>" );
|
||||||
|
writer.println( "<link rel=\"shortcut icon\" href=\"../../favicon.ico\"/>" );
|
||||||
writer.println( "</head>" );
|
writer.println( "</head>" );
|
||||||
writer.println( "<body>" );
|
writer.println( "<body>" );
|
||||||
writer.println( "<h3>Collection: /" + logicalResource + "</h3>" );
|
writer.println( "<h3>Collection: /" + logicalResource + "</h3>" );
|
||||||
|
|
Loading…
Reference in New Issue