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.

mailer.html.erb 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <html>
  2. <head>
  3. <style>
  4. body {
  5. font-family: Verdana, sans-serif;
  6. font-size: 14px;
  7. line-height: 1.4em;
  8. color: #222;
  9. }
  10. h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
  11. h1 { font-size: 1.3em; line-height: 1.4em;}
  12. h2, h3 { font-size: 1.1em; }
  13. a, a:link, a:visited { color: #169;}
  14. a:hover, a:active { color: #c61a1a; }
  15. a.wiki-anchor { display: none; }
  16. fieldset.attachments {border-width: 1px 0 0 0;}
  17. hr {
  18. width: 100%;
  19. height: 1px;
  20. background: #ccc;
  21. border: 0;
  22. margin: 1.2em 0;
  23. }
  24. span.footer {
  25. font-size: 0.8em;
  26. font-style: italic;
  27. }
  28. blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 0;}
  29. blockquote blockquote { margin-left: 0;}
  30. pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
  31. pre {
  32. margin: 1em 1em 1em 1.6em;
  33. padding: 8px;
  34. background-color: #fafafa;
  35. border: 1px solid #e2e2e2;
  36. border-radius: 3px;
  37. width:auto;
  38. overflow-x: auto;
  39. overflow-y: hidden;
  40. }
  41. ul.details {color:#959595; margin-bottom: 1.5em;}
  42. table {
  43. border-collapse: collapse;
  44. margin-bottom: 1em;
  45. }
  46. table, td, th {
  47. border: 1px solid #bbb;
  48. padding: 4px;
  49. }
  50. .badge {
  51. position:relative;
  52. font-weight:bold;
  53. font-size: 10px;
  54. bottom: 2px;
  55. padding: 1px 3px;
  56. margin-right: 2px;
  57. margin-left: 2px;
  58. border-radius: 2px;
  59. text-transform: uppercase;
  60. text-decoration: none;
  61. }
  62. .badge-status-open {
  63. color: #205D86;
  64. border: 1px solid #205D86;
  65. }
  66. .badge-status-closed {
  67. color: #1D781D;
  68. border: 1px solid #1D781D;
  69. }
  70. </style>
  71. </head>
  72. <body>
  73. <% if Setting.emails_header.present? -%>
  74. <span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header).html_safe %></span>
  75. <% end -%>
  76. <%= yield %>
  77. <hr />
  78. <% if Setting.emails_footer.present? -%>
  79. <span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer).html_safe %></span>
  80. <% end -%>
  81. </body>
  82. </html>