]> CRI, Mines Paris - PSL - Plinn.git/blobdiff - skins/content/file_view_template.pt
Merge des modifications du svn de Plinn r1524:1547.
[Plinn.git] / skins / content / file_view_template.pt
diff --git a/skins/content/file_view_template.pt b/skins/content/file_view_template.pt
new file mode 100755 (executable)
index 0000000..50045ab
--- /dev/null
@@ -0,0 +1,59 @@
+<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template_view/macros/master">
+
+  <head>
+  <base metal:fill-slot="base" tal:attributes="href python: here.absolute_url() + '/'" />
+    <title>File document view</title>
+    <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
+  </head>
+  <body>
+    <div metal:fill-slot="main" i18n:domain="cmf_default">
+      <h2 i18n:translate="">File Properties</h2>
+      <table>
+        <tr>
+          <th align="right" i18n:translate="">
+            Size
+          </th>
+          <td tal:define="sizeHr python:here.sizehr(here.size)">
+               <span tal:replace="sizeHr/value">12.34</span> <span tal:replace="sizeHr/unit">Ko</span>
+          </td>
+        </tr>
+        <tr>
+          <th align="right" i18n:translate="">
+            Content-type
+          </th>
+          <td tal:content="here/content_type">
+            application/gzip
+          </td>
+        </tr>
+        <tr>
+          <td>
+            <br />
+          </td>
+          <td></td>
+        </tr>
+      </table>
+      <table>
+       <col width="50%" span="2" />
+        <tr>
+          <td>
+            <h2 i18n:translate="">Download File</h2>
+          </td>
+          <td>
+            <h2 i18n:translate="">Web Preview</h2>
+          </td>
+        </tr>
+          <tr>
+          <td style="padding-right:3em;">
+            <a title="Download File" href="." tal:attributes="href file; title here/Title" tal:define="file string:${here/absolute_url}/download" target="_blank" i18n:translate="">Download : &laquo;&nbsp;<span tal:content="here/title_or_id" tal:omit-tag="" i18n:name="file_title">File title</span>&nbsp;&raquo;</a>
+          </td>
+          <td>
+            <a href="." tal:attributes="href string:${here/absolute_url}/file_preview" target="_blank" i18n:translate="">Preview</a>
+          </td>
+        </tr>
+        
+        
+      </table>
+    </div>
+  </body>
+
+</html>
\ No newline at end of file