add download link in lightbox

This commit is contained in:
Régis Hanol
2013-11-29 20:03:39 +01:00
parent 008151e90d
commit 298b54c0e7
4 changed files with 17 additions and 2 deletions

View File

@ -170,6 +170,8 @@ class CookedPostProcessor
informations = "#{original_width}x#{original_height}"
informations << " #{number_to_human_size(upload.filesize)}" if upload
a["title"] = filename
meta.add_child create_span_node("filename", filename)
meta.add_child create_span_node("informations", informations)
meta.add_child create_span_node("expand")