8f351fedafef7d1405d6a3ba034c568ca1fad0e5
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_index.html
1 {% extends "base_site.html" %}
2 {% load adminmedia admin_list i18n %}
3 {% block extrahead %}
4     <!-- App Stuff -->
5     <link type="text/css" rel="stylesheet" href="/static/css/app.css" />
6
7     {% block additional_javascript %}
8     <script type="text/javascript" src="/static/js/jquery.min.js"></script>
9     <script type="text/javascript" src="/static/js/htsw.js"></script>
10     <script type="text/javascript">
11       $(document).ready(function() {
12         $(window).resize(function() {
13            var window_height = $(window).height();
14            var position = $("#changelist table").position();
15            height = window_height - position.top;
16            $("#changelist table.filtered").height(height);
17            $("#changelist-filter").height(height);
18         });
19         $(window).resize();
20       });
21     </script>
22     {% endblock %}
23 {% endblock %}
24 {% block bodyclass %}change-list{% endblock %}
25 {% block coltype %}flex{% endblock %}
26
27 {% block content %}
28 <div id="library_header_link">
29 {% if todo_only %}<a href="..">All</a>{% else %}<a href="not_run/">Not run</a>
30 {% endif %}
31 </div>
32 <div id="library-index-div" >
33   <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
34     {% block search %}{% search_form cl %}{% endblock %}
35
36     {% block pagination %}{% pagination cl %}{% endblock %}
37
38     {% block filters %}
39     {% if cl.has_filters %}
40     <div id="changelist-filter">
41       <h2 >{% trans 'Filter' %}</h2>
42       {% for spec in cl.filter_specs %}
43          {% admin_list_filter cl spec %}
44          {% endfor %}
45     </div>
46     {% endif %}
47     {% endblock %}
48   {% block summary_stats %}
49   <table class="{% if cl.has_filters %} filtered{% endif %}">
50     <thead >
51       <tr >
52         <td >Parent</td>
53         <td >Library ID</td>
54         <td >Species</td>
55         <td >Library Name</td>
56         <td colspan="3" >Single</td>
57         <td colspan="3" >Paired</td>
58         <td >HD</td>
59       </tr>
60       <tr >
61         <td colspan="4"></td>
62         <td>&lt;40</td>
63         <td>&lt;100</td>
64         <td>100+</td>
65         <td>&lt;40</td>
66         <td>&lt;100</td>
67         <td>100+</td>
68         <td></td>
69       </tr>
70     </thead>
71     <tbody >
72       {% for lib in library_list %}
73       <tr about="{{lib.library.get_absolute_url}}">
74         <td ><a href="{{lib.library.get_absolute_url}}">{{ lib.amplified_from }}</a></td>
75         <td ><a href="{{lib.library.get_absolute_url}}"><span property="libns:library_id">{{ lib.library_id }}</span></a></td>
76         <td ><a href="{{lib.library.library_species.get_absolute_url}}" rel="libns:species"><span property="libns:species_name">{{ lib.species_name }}</span></a></td>
77         <td ><a href="{{ lib.library.get_absolute_url }}"><span property="libns:name">{{ lib.library_name }}</span></a></td>
78         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.0 }}</td>
79         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.1 }}</td>
80         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.2 }}</td>
81         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.0 }}</td>
82         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.1 }}</td>
83         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.2 }}</td>
84         {% if lib.is_archived %}
85           <td ><img src="/static/img/hdd_unmount.png" alt="Archived" /></td>
86         {% else %}
87           <td ></td>
88         {% endif %}
89       </tr>
90       {% endfor %}
91     </tbody>
92   </table>
93   </div>
94   {% endblock %}
95 </div>
96 {% endblock %}