report.j2 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>{{ title }}</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=2">
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  10. <script src="./js/shCore.js" type="text/javascript"></script>
  11. <script src="./js/shBrushPython.js" type="text/javascript"></script>
  12. <script src="./js/shBrushPlain.js" type="text/javascript"></script>
  13. <link href="./css/shCore.css" rel="stylesheet" type="text/css" />
  14. <link href="./css/shThemeDefault.css" rel="stylesheet" type="text/css" />
  15. <script src="./js/shAutoloader.js" type="text/javascript"></script>
  16. <script type="text/x-mathjax-config">
  17. MathJax.Hub.Config({
  18. config: ["MMLorHTML.js"],
  19. jax: ["input/TeX", "output/HTML-CSS", "output/NativeMML"],
  20. extensions: ["MathMenu.js", "MathZoom.js"]
  21. });
  22. </script>
  23. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML-full"> </script>
  24. <style>
  25. .modal-dialog {width:90%;}
  26. .thumbnail {margin-bottom:6px;}
  27. .modal-title {text-align:center;}
  28. .figure-container {
  29. max-width:35%;
  30. padding-bottom: 0px;
  31. }
  32. .main-content {
  33. padding-left: 30px;
  34. padding-right: 30px;
  35. }
  36. .panel-group {
  37. margin-bottom: 0px;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="container-fluid">
  43. <div class="row">
  44. <a href="./" class="button"> Go Up <span class="glyphicon glyphicon-circle-arrow-left"></span> </a>
  45. </div>
  46. <div class="row main-content">
  47. {% block body %}
  48. <h3>No body supplied</h3>
  49. {% endblock %}
  50. </div>
  51. <div class="row">
  52. <div class="col-12-lg">
  53. <div class="panel-group" id="accordion">
  54. <div class="panel-heading">
  55. <h4 class="panel-title" style="text-align:center">
  56. {% if config %}
  57. <button data-toggle="collapse" data-parent="#accordion" class="btn btn-default" href="#collapseConfig">Analysis Configuration</button>
  58. {% endif %}
  59. {% if source %}
  60. <button data-toggle="collapse" data-parent="#accordion" class="btn btn-default" href="#collapseSrc">Report Source Code</button>
  61. {% endif %}
  62. {% if ana_source %}
  63. <a class="btn btn-default" href="{{ ana_source }}" target="_blank">Analysis Source Code</a>
  64. {% endif %}
  65. </h4>
  66. </div>
  67. {% if config %}
  68. <div id="collapseConfig" class="panel-collapse collapse">
  69. <div class="panel-body">
  70. <script type="syntaxhighlighter" class="brush: plain"><![CDATA[ {{ config|safe}} ]]></script>
  71. </div>
  72. </div>
  73. {% endif %}
  74. {% if source %}
  75. <div id="collapseSrc" class="panel-collapse collapse">
  76. <div class="panel-body">
  77. <script type="syntaxhighlighter" class="brush: python"><![CDATA[ {{ source|safe}} ]]></script>
  78. </div>
  79. </div>
  80. {% endif %}
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div id="myModal" class="modal fade" tabindex="-1" role="dialog">
  86. <div class="modal-dialog modal-lg">
  87. <div class="modal-content">
  88. <div class="modal-header">
  89. <button type="button" class="close" data-dismiss="modal">×</button>
  90. <h3 class="modal-title">Heading</h3>
  91. </div>
  92. <div class="modal-body"> </div>
  93. </div>
  94. </div>
  95. </div>
  96. </body>
  97. <script>
  98. $('.thumbnail').click(function(){
  99. $('.modal-body').empty();
  100. var title = $(this).parent('a').attr("title");
  101. $('.modal-title').html(title);
  102. $($(this).parents('div').html()).appendTo('.modal-body');
  103. $('#myModal').modal({show:true});
  104. });
  105. SyntaxHighlighter.all()
  106. </script>
  107. </html>