Generate html reports when doing sparql queries with encode_find.
[htsworkflow.git] / htsworkflow / templates / rdf_report.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <title>Report</title>
5     <style>
6 table {
7     border-spacing: 0;
8 }
9
10 table, td {
11     border-style: solid;
12 }
13
14 td { margin: 0;
15      border-width: 1px 1px 0 0;
16      padding: 4px;
17 }    </style>
18   </head>
19   <body>
20     <table>
21       <thead>
22         <tr>{% for k in results.0 %}
23           <td>{{k}}</td>{% endfor %}
24         </tr>
25       </thead>
26       <tbody>
27         {% for row in results %}<tr>{% for value in row.values %}
28           <td>{% spaceless %}
29             {% if value.url %}<a href="{{ value.url }}">{% endif%}
30             {{value.simple}}
31             {% if value.url %}</a>{% endif %}</td>{% endspaceless %}{% endfor %}
32         </tr>
33       {% endfor %}
34       </tbody>
35     </table>
36   </body>
37 </html>