enterprise_report.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
  5. <meta content="width=device-width" name="viewport"/>
  6. <!-- build:css css/tidy.css -->
  7. <link href="../assets/css/ink.css" inline rel="stylesheet"/>
  8. <link href="../assets/css/style.css" inline rel="stylesheet"/>
  9. <!-- /build -->
  10. </head>
  11. <body class="main"
  12. style="background: white; display: flex; flex-direction: column; align-items: center;border-spacing: 0;">
  13. <table class="body"
  14. style="background: white; display: flex; flex-direction: column; align-items: center; border: 1px solid #dce1e6; margin: 0 auto; border-spacing: 0;">
  15. <tbody style="margin: 0 auto;">
  16. <tr>
  17. <td align="center" class="center" style="padding: 0;" valign="top">
  18. <center>
  19. <table class="row header"
  20. style="padding: 30px 0;display: flex;justify-content: center; background: white; border-spacing: 0;">
  21. <tbody style="margin: 0 auto;background: white;">
  22. <tr style="background: white;">
  23. <td align="center" class="center">
  24. <center>
  25. <table class="container" style="border-spacing: 0;">
  26. <tbody style="margin: 0 auto;">
  27. <tr>
  28. <td class="wrapper last">
  29. <table class="twelve columns">
  30. <tr>
  31. <td class="twelve sub-columns center">
  32. <img class="logo" src="{{.Logo}}"
  33. style=" max-width: 340px;float: none; display: inline;"/>
  34. </td>
  35. <td class="expander"></td>
  36. </tr>
  37. </table>
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </center>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. <table class="container" style="background: white;">
  48. <tr>
  49. </tr>
  50. <tr>
  51. <td
  52. align="center"
  53. class="mini-centered-text"
  54. style="
  55. color: #343b41;
  56. font: 400 16px/27px 'Helvetica Neue', Helvetica, Arial, sans-serif;
  57. mso-table-lspace: 0pt;
  58. mso-table-rspace: 0pt;
  59. padding: 25px 35px;
  60. text-align: center;
  61. vertical-align: top;
  62. "
  63. valign="top"
  64. >
  65. <!-- This email is for the report feature -->
  66. {{Subject .Subject "{{.Name}}"}}
  67. <table class="row"
  68. style="background: white; margin: 0 auto;display: flex; flex-direction: column; align-items: center;">
  69. <tr style="background: white;">
  70. <td class="wrapper last" style="background: white;">
  71. <table class="twelve columns" style="background: white;" align="center">
  72. <tr style="background: white;">
  73. <td style="background: white;">
  74. <h4 style="white-space: pre-line; text-align: left; font-weight: normal;color: #343b41;">
  75. {{.Message}}</h4>
  76. <div style="text-align: center; color: #343b41;">
  77. {{if .EnableDashboardURL}}
  78. <h4 style="white-space: pre-line; text-align: left; font-weight: normal;color: #343b41;margin-bottom: 10px">
  79. View in Grafana:
  80. </h4>
  81. {{range .Dashboards}}
  82. <a href="{{.URL}}"
  83. style="display: flex;
  84. align-items: center;
  85. font-size: 14px;
  86. height: 32px;
  87. line-height: 30px;
  88. vertical-align: middle;
  89. cursor: pointer;
  90. color: #3D71D9;
  91. text-decoration: none;">
  92. {{.Name}}
  93. </a>
  94. {{end}}
  95. {{end}}
  96. </div>
  97. </td>
  98. <td class="expander"></td>
  99. </tr>
  100. </table>
  101. </td>
  102. </tr>
  103. {{ if .HasEmbeddedImages }}
  104. <tr style="background: white;">
  105. <td class="wrapper last" style="background: white;">
  106. <table class="twelve columns" style="background: white;">
  107. <tr style="background: white;">
  108. <td style="background: white;">
  109. {{ range .EmbeddedImages }}
  110. <div style="text-align: center; font-size: 12px; color: #343b41;">
  111. <img alt="{{.}}" src="cid:{{.}}" style="max-width: 900px; height: auto; width: 100%"/>
  112. </div>
  113. {{ end }}
  114. </td>
  115. <td class="expander"></td>
  116. </tr>
  117. </table>
  118. </td>
  119. </tr>
  120. {{ end }}
  121. </table>
  122. <!-- container end below -->
  123. </td>
  124. </tr>
  125. </table>
  126. <!-- footer -->
  127. <table class="footer center"
  128. style="display: flex;justify-content: center; border-spacing: 0; background: #fff; {{if .SentBy}}border-top: 1px solid #dce1e6;{{end}}">
  129. <tbody style="border-spacing: 0; margin: 0 auto;">
  130. <tr>
  131. <td class="wrapper last" style="padding: 0;">
  132. <table class="twelve columns center">
  133. <tr>
  134. <td align="center" class="twelve">
  135. <center>
  136. <p style="text-align: center; font-size: 12px; color: #343b41;">
  137. {{if .SentBy}} Sent by <a href="{{.FooterLink}}">{{.FooterText}}</a>
  138. {{end}}
  139. </p>
  140. </center>
  141. </td>
  142. <td class="expander"></td>
  143. </tr>
  144. </table>
  145. </td>
  146. </tr>
  147. </tbody>
  148. </table>
  149. </center>
  150. </td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. </body>
  155. </html>