use larger font for directory links
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / layouts / MixedLayout.java
index c51d7fa..915c7c8 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
  * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 2 of the GNU General Public License
  * as published by the Free Software Foundation.
@@ -62,7 +62,7 @@ public class MixedLayout implements Layout {
                dirHtml.append("<TR>");
                dirHtml.append("<TD><b><a href=\""
                                + indexer.getDirectoryUrl(directory, indexingContext)
-                               + "\"> ==&gt; " + directory.fileName + "</a></b></TD>");
+                               + "\"><h2> ==&gt; " + directory.fileName + "</h2></a></b></TD>");
                dirHtml.append("</TR>\n");
 
        }
@@ -78,7 +78,7 @@ public class MixedLayout implements Layout {
                                + String.valueOf(horizontalColumnsLimit)
                                + "\"><a href=\""
                                + indexingContext.getGlobalUrl()
-                               + UrlParamEncoder.encode(indexingContext.getLocalUrl()
+                               + UrlParamEncoder.encode(indexingContext.getLocalUrl() + "/"
                                                + fullFileName) + "\">" + fullFileName + "</a>\n");
                filesHtml.append("&nbsp;&nbsp;("
                                + FilePathParser.getFileSizeDescription(file.getFileLength())
@@ -166,20 +166,9 @@ public class MixedLayout implements Layout {
                                .append("<source type=\"video/ogg\" codecs=\"theora, vorbis\" src=\""
                                                + indexingContext.getGlobalUrl()
                                                + UrlParamEncoder.encode(indexingContext.getLocalUrl()
-                                                               + file.fileName) + "\">\n");
+                                                               + "/" + file.fileName) + "\">\n");
                filesHtml.append("</source>\n");
 
-               // if browser cannot play video directry, fall back to java Applet
-               filesHtml
-                               .append("<applet code=\"com.fluendo.player.Cortado.class\" archive=\"http://theora.org/cortado.jar\" width=\"800\" height=\"600\">\n");
-               filesHtml.append("    <param name=\"url\" value=\""
-                               + indexingContext.getGlobalUrl()
-                               + UrlParamEncoder.encode(indexingContext.getLocalUrl()
-                                               + file.fileName) + "\"/>\n");
-               filesHtml.append("    <param name=\"keepAspect\" value=\"true\"/>\n");
-               filesHtml.append("    <param name=\"autoPlay\" value=\"false\"/>\n");
-               filesHtml.append("</applet>\n");
-
                filesHtml.append("</video>\n");
 
                filesHtml.append("<br/>\n");
@@ -191,7 +180,7 @@ public class MixedLayout implements Layout {
                                                + "<b/>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
                filesHtml.append("<a href=\""
                                + indexingContext.getGlobalUrl()
-                               + UrlParamEncoder.encode(indexingContext.getLocalUrl()
+                               + UrlParamEncoder.encode(indexingContext.getLocalUrl() + "/"
                                                + file.fileName) + "\">download as OGV</a>\n");
 
                filesHtml.append("</TD></TR>\n");
@@ -255,7 +244,7 @@ public class MixedLayout implements Layout {
                        finalHtml.append("<TR>");
                        finalHtml.append("<TD><b><a href=\""
                                        + indexer.getParentDirectoryUrl(indexingContext)
-                                       + "\"> &lt;== ..</a></b></TD>");
+                                       + "\"><h2> &lt;== parent directory</h2></a></b></TD>");
                        finalHtml.append("</TR>\n");
                }