diff --git a/Qalbum.py b/Qalbum.py index f005845..0435ab7 100755 --- a/Qalbum.py +++ b/Qalbum.py @@ -146,7 +146,7 @@ def imagescript(path,list): def imagelinks(path,list): ''' Returns the HTML string of images ''' - strout='
' + strout='
' + strout+='
' return strout def filescript(path,list): diff --git a/galleryscript.js b/galleryscript.js index 7a59fad..22d5dc6 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -32,7 +32,7 @@ function setup() { if (notsupported()) { return; } - hidethumbs(); + //hidethumbs(); document.onkeydown=keypressed; var req=request(); if (req!=-1) { @@ -162,7 +162,8 @@ function allthumbs() { function subfoldersmalllist() { // Shows a small subfolder list ob=document.getElementById('pathcontainer'); - pathstr='Subfolders: '; + pathstr='Subfolders: '; + pathstr+='(text icon list) '; for (p=0; p'+nicestring(pathlist[p][0])+'('+String(pathlist[p][1])+')/ '; } @@ -175,7 +176,7 @@ function subfoldersmalllist() { function subfolderbiglist() { // Shows a subfolder list with thumbnails ob=document.getElementById('pathcontainer'); - pathstr='

Subfolders:

'; + pathstr='

Subfolders: (text icon list)

'; for (p=0; p0) { imgstr=''; @@ -187,6 +188,23 @@ function subfolderbiglist() { } else { ob.innerHTML=pathstr; } return; } +function subfolderdetaillist() { + // Shows a subfolder list with thumbnails + ob=document.getElementById('pathcontainer'); + pathstr='

Subfolders: (text icon list)

'; + for (p=0; p0) { + imgstr=''; + } else { imgstr=''; } + pathstr+=''; + + } + if (pathlist.length==0) { + ob.innerHTML=''; + } else { ob.innerHTML=pathstr; } + return; +} function sortlist(property) { // sorts the image list based on time or name, or reverse sort var templist=[] diff --git a/gallerystyle.css b/gallerystyle.css index b1005d6..4f95d1d 100644 --- a/gallerystyle.css +++ b/gallerystyle.css @@ -33,7 +33,20 @@ body { opacity: 0.8; display: block; } -#pathsmalllink { +.pathdetailrow { + float:left; + clear:both; + margin-bottom:1px; +} +.pathdetaillink { + white-space:nowrap; + overflow:hidden; + line-height:80px; +} +.pathdetaillinktext { + background-color: white; +} +.pathsmalllink { font-size: x-small; } .thumbbox {