You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.6 KiB

7 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <templates>
  16. <div t-name="ViewerJSFrame" class="o_preview_viewerjs">
  17. <iframe allowfullscreen="allowfullscreen"
  18. webkitallowfullscreen="webkitallowfullscreen"
  19. t-att-src="url">
  20. </iframe>
  21. </div>
  22. <div t-name="PDFjsFrame" class="o_preview_pdfjs">
  23. <iframe allowfullscreen="allowfullscreen"
  24. webkitallowfullscreen="webkitallowfullscreen"
  25. t-att-src="url">
  26. </iframe>
  27. </div>
  28. <div t-name="UnsupportedContent" class="o_preview_unsupported">
  29. <div class="o_preview_unsupported_header">
  30. <h3>Unsupported File Extension</h3>
  31. </div>
  32. <div class="o_preview_unsupported_body">
  33. <div class="col-xs-12 o_preview_unsupported_info">
  34. <p>
  35. This file type is currently not supported. By installing further extension via the
  36. <a href="https://www.odoo.com/apps/modules/browse?author=MuK%20IT">Odoo App Store</a>
  37. it is possible to improve the Preview.
  38. </p>
  39. </div>
  40. <div class="col-xs-3 o_preview_unsupported_icon" align="center">
  41. <div class="o_image" t-att-data-mimetype="mimetype" />
  42. </div>
  43. <div class=" col-xs-9">
  44. <table class="table o_preview_unsupported_table">
  45. <tbody>
  46. <tr>
  47. <td>Filename:</td>
  48. <td><t t-esc="title"/></td>
  49. </tr>
  50. <tr>
  51. <td>Type:</td>
  52. <td><t t-esc="mimetype"/></td>
  53. </tr>
  54. <tr>
  55. <td>Extension:</td>
  56. <td><t t-esc="extension"/></td>
  57. </tr>
  58. </tbody>
  59. </table>
  60. </div>
  61. <div class="col-xs-12 o_preview_unsupported_download text-center">
  62. <a class="btn btn-primary" t-att-href="url">Download</a>
  63. </div>
  64. </div>
  65. </div>
  66. </templates>