Breaking up and truncating excessive captions.

This commit is contained in:
Knut Forkalsrud 2010-02-03 20:23:14 -08:00
parent f34f3f4c24
commit 387f5c4b82
4 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,5 @@
file.l1000729.jpg.caption=Test caption!
file.IMG_0139.JPG.hidden=false
file.fra_jakt.jpg.caption: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
dir.portraits.hidden=false
sort=date desc

BIN
photos/geiranger/IMG_0577.JPG Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View file

@ -1,4 +1,4 @@
#cover=valdemar-dahl.jpg
cover=anton-rudi.jpg
caption=Old Portraits
caption=Old Portraits. 1953-05-02, Kirsten Høystad, Anne Marie (søskenbarn av Erna), Erna, ukjent, ukjent, Sigrid Dokk, ukjent. De ukjente er barndomsvenninner av Erna fra Oslo.

View file

@ -37,8 +37,12 @@
}
div.grid {
float: left;
#set($divheight = $thmb + 50)
#set($divheight = $thmb + 60)
#set($divwidth = $thmb + 25)
height: ${divheight}px;
max-height: ${divheight}px;
max-width: ${divwidth}px;
overflow: hidden;
}
img {
padding: 5px;
@ -63,7 +67,7 @@
#set($enpath = $mapper.map(${entry.getPath()}))
<div class="photo">
<img src="${base}${thpath}?size=$thmb" border="0" width="$dim.width" height="$dim.height"/><br/>
<span class="caption">$!entry.caption</span>
<p class="caption">$!entry.caption</p>
</div>
#else
@ -80,7 +84,7 @@
<div class="grid">
<span class="name">$en.name</span><br/>
<a href="#navlink($en)"><img src="${base}${thpath}?size=${thmb}" border="0" width="${dim.width}" height="${dim.height}"/></a><br/>
<span class="caption">$!en.caption</span>
<p class="caption">$!en.caption</p>
</div>
#end
#end