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:
Olivier Lamy 2012-10-29 22:20:04 +00:00
parent ec1470cd94
commit c3254df34b
2 changed files with 4 additions and 2 deletions

View File

@ -22,11 +22,12 @@ package org.apache.archiva.webdav;
import org.apache.jackrabbit.webdav.DavSession;
import java.util.HashSet;
import java.util.Set;
public class ArchivaDavSession
implements DavSession
{
private final HashSet<String> lockTokens = new HashSet<String>();
private final Set<String> lockTokens = new HashSet<String>();
public void addLockToken( String token )
{
@ -35,7 +36,7 @@ public class ArchivaDavSession
public String[] getLockTokens()
{
return (String[]) lockTokens.toArray( new String[lockTokens.size()] );
return lockTokens.toArray( new String[lockTokens.size()] );
}
public void removeLockToken( String token )

View File

@ -103,6 +103,7 @@ public class IndexWriter
writer.println( "th td:nth-child(2){width:150px;}" );
writer.println( "th td:nth-child(3){width:150px;}" );
writer.println( "</style>" );
writer.println( "<link rel=\"shortcut icon\" href=\"../../favicon.ico\"/>" );
writer.println( "</head>" );
writer.println( "<body>" );
writer.println( "<h3>Collection: /" + logicalResource + "</h3>" );