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.

75 lines
2.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2017-2019 MuK IT GmbH.
  4. This file is part of MuK Preview
  5. (see https://mukit.at).
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU Lesser General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <templates>
  18. <t t-name="muk_preview.PreviewWrapper">
  19. <div class="mk_preview_wrapper" />
  20. </t>
  21. <t t-name="muk_preview.PreviewContent">
  22. <div class="mk_preview_content">
  23. <t t-raw="0"/>
  24. </div>
  25. </t>
  26. <t t-name="muk_preview.PreviewContentUnsupported">
  27. <t t-call="muk_preview.PreviewContent">
  28. <div class="row mk_preview_unsupported">
  29. <div class="d-none d-sm-block col-sm-3 pt-3 pb-3">
  30. <div class="o_image" t-att-data-mimetype="widget.mimetype" />
  31. </div>
  32. <div class="col-12 col-sm-8">
  33. <h3 class="pb-2" >Unsupported File</h3>
  34. <table class="table">
  35. <tbody>
  36. <tr>
  37. <td>Filename:</td>
  38. <td><t t-esc="widget.filename"/></td>
  39. </tr>
  40. <tr>
  41. <td>Mimetype:</td>
  42. <td><t t-esc="widget.mimetype"/></td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. <div class="text-center text-sm-right">
  47. <a class="float-sm-righ btn btn-outline-primary" t-att-href="widget.url">Download</a>
  48. </div>
  49. </div>
  50. </div>
  51. </t>
  52. </t>
  53. <t t-name="muk_preview.PreviewContentPDF">
  54. <t t-call="muk_preview.PreviewContent">
  55. <div class="mk_preview_pdf">
  56. <iframe t-att-src="widget.viewer_url"
  57. allowfullscreen="allowfullscreen"
  58. webkitallowfullscreen="webkitallowfullscreen">
  59. </iframe>
  60. </div>
  61. </t>
  62. </t>
  63. </templates>