You are here

Report.html.twig in Drupal 7 to 8/9 Module Upgrader 8

<!DOCTYPE html>
<html>
  <head>
    <title>Drupal Module Upgrader analysis report</title>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:600italic,400,700,600' rel='stylesheet' type='text/css' />
    <style type="text/css">
    <!--

body {
  width: 80%;
  color: #343434;
  margin: 1em auto;
  font-family: 'Open Sans', Verdana, sans-serif;
}

details {
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 2em;
  display: list-item;
  list-style: none;
}

details summary {
  padding: 1em;
  margin-bottom: 1em;
  display: list-item;
  cursor: pointer;
}

details.error summary {
  background-color: #ffd5d5;
}

details.warning summary {
  background-color: #fff3bb;
}

a {
  color: #095cb1;
  font-weight: bold;
  text-decoration: none;
}

h5 {
  font-size: 1em;
}

aside {
  font-style: italic;
  line-height: 20px;
  font-size: 15px;
}

.group {
  border: 1px solid #ececec;
  padding: 1em;
  display: block;
}

.group > summary {
  padding: 0;
  color: #c8c8c8;
  margin-bottom: 0;;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: list-item;
}

.group[open] > summary {
  margin-bottom: 1em;
}

.group > details:last-child {
  margin-bottom: 0;
}

    -->
    </style>
  </head>
  <body>
    <h1>Drupal Module Upgrader analysis report</h1>
  {% for tag, tagged_issues in issues %}
    <details open="true" class="group">
      <summary>{{ tag }}</summary>
      {{ tagged_issues }}
    </details>
  {% endfor %}
  </body>
</html>

File

templates/Report.html.twig
View source
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Drupal Module Upgrader analysis report</title>
  5. <link href='http://fonts.googleapis.com/css?family=Open+Sans:600italic,400,700,600' rel='stylesheet' type='text/css' />
  6. <style type="text/css">
  7. <!--
  8. body {
  9. width: 80%;
  10. color: #343434;
  11. margin: 1em auto;
  12. font-family: 'Open Sans', Verdana, sans-serif;
  13. }
  14. details {
  15. font-size: 18px;
  16. line-height: 25px;
  17. margin-bottom: 2em;
  18. display: list-item;
  19. list-style: none;
  20. }
  21. details summary {
  22. padding: 1em;
  23. margin-bottom: 1em;
  24. display: list-item;
  25. cursor: pointer;
  26. }
  27. details.error summary {
  28. background-color: #ffd5d5;
  29. }
  30. details.warning summary {
  31. background-color: #fff3bb;
  32. }
  33. a {
  34. color: #095cb1;
  35. font-weight: bold;
  36. text-decoration: none;
  37. }
  38. h5 {
  39. font-size: 1em;
  40. }
  41. aside {
  42. font-style: italic;
  43. line-height: 20px;
  44. font-size: 15px;
  45. }
  46. .group {
  47. border: 1px solid #ececec;
  48. padding: 1em;
  49. display: block;
  50. }
  51. .group > summary {
  52. padding: 0;
  53. color: #c8c8c8;
  54. margin-bottom: 0;;
  55. font-weight: bold;
  56. letter-spacing: .1em;
  57. text-transform: uppercase;
  58. display: list-item;
  59. }
  60. .group[open] > summary {
  61. margin-bottom: 1em;
  62. }
  63. .group > details:last-child {
  64. margin-bottom: 0;
  65. }
  66. -->
  67. </style>
  68. </head>
  69. <body>
  70. <h1>Drupal Module Upgrader analysis report</h1>
  71. {% for tag, tagged_issues in issues %}
  72. <details open="true" class="group">
  73. <summary>{{ tag }}</summary>
  74. {{ tagged_issues }}
  75. </details>
  76. {% endfor %}
  77. </body>
  78. </html>