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.1 KiB

  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. <t t-name="muk_preview.PreviewWrapper">
  17. <div class="mk_preview_wrapper" />
  18. </t>
  19. <t t-name="muk_preview.PreviewContent">
  20. <div class="mk_preview_content">
  21. <t t-raw="0"/>
  22. </div>
  23. </t>
  24. <t t-name="muk_preview.PreviewContentUnsupported">
  25. <t t-call="muk_preview.PreviewContent">
  26. <div class="row mk_preview_unsupported">
  27. <div class="d-none d-sm-block col-sm-3 pt-3 pb-3">
  28. <div class="o_image" t-att-data-mimetype="widget.mimetype" />
  29. </div>
  30. <div class="col-12 col-sm-8">
  31. <h3 class="pb-2" >Unsupported File</h3>
  32. <table class="table">
  33. <tbody>
  34. <tr>
  35. <td>Filename:</td>
  36. <td><t t-esc="widget.filename"/></td>
  37. </tr>
  38. <tr>
  39. <td>Mimetype:</td>
  40. <td><t t-esc="widget.mimetype"/></td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. <div class="text-center text-sm-right">
  45. <a class="float-sm-righ btn btn-outline-primary" t-att-href="widget.url">Download</a>
  46. </div>
  47. </div>
  48. </div>
  49. </t>
  50. </t>
  51. <t t-name="muk_preview.PreviewContentPDF">
  52. <t t-call="muk_preview.PreviewContent">
  53. <div class="mk_preview_pdf">
  54. <iframe t-att-src="widget.viewer_url"
  55. allowfullscreen="allowfullscreen"
  56. webkitallowfullscreen="webkitallowfullscreen">
  57. </iframe>
  58. </div>
  59. </t>
  60. </t>
  61. </templates>