Explorar el Código

add link to download the file in document view

damien hace 13 años
padre
commit
21b47ee3b1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      pboard/pboard/templates/document.mak

+ 2 - 1
pboard/pboard/templates/document.mak Ver fichero

361
                   % for current_file in current_node.getFiles():
361
                   % for current_file in current_node.getFiles():
362
                     <tr title="Last updated: ${current_file.updated_at}">
362
                     <tr title="Last updated: ${current_file.updated_at}">
363
                       <td>
363
                       <td>
364
-                        <img src="${tg.url('/api/get_file_content_thumbnail/%s'%(current_file.node_id))}" class="img-polaroid">
364
+                        <a href="${tg.url('/api/get_file_content/%s'%(current_file.node_id))}" title="${_("Download file")}"><i class="icon-g-attach"></i></a>
365
+                        ## FIXME - SHOW THUMBNAIL WHEN IT WILL BE OK<img src="${tg.url('/api/get_file_content_thumbnail/%s'%(current_file.node_id))}" class="img-polaroid">
365
                       </td>
366
                       </td>
366
                       <td>
367
                       <td>
367
                         <b>${current_file.data_label}</b><br/>
368
                         <b>${current_file.data_label}</b><br/>