only display thumbnail if the file is here

This is to avoid having a «thumbnail» text for big images.
remove html from zip wip
fix bug with lock/unlock of items
fix bug in zip generation; add links to pdf

There was no check of the upload type when items got attached to the zip
archive.

The linked items will be displayed now.
show if item is locked of showDB
changelog