Browse Source

add link to download the file in document view

damien 11 years ago
parent
commit
21b47ee3b1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pboard/pboard/templates/document.mak

+ 2 - 1
pboard/pboard/templates/document.mak View File

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/>