c37635d188a2df95b209cb56fd23de816e2695b2
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_index.html
1 {% extends "base_site.html" %}
2 {% load 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 typeof="libns:Library" 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 rel="libns:species">
77           <a typeof="libns:Species"
78              href="{{lib.library.library_species.get_absolute_url}}">
79             <span property="libns:species_name">{{ lib.species_name }}</span>
80           </a>
81         </td>
82         <td >
83           <a href="{{ lib.library.get_absolute_url }}">
84             <span property="libns:name">{{ lib.library_name }}</span>
85           </a>
86         </td>
87         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.0 }}</td>
88         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.1 }}</td>
89         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.2 }}</td>
90         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.0 }}</td>
91         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.1 }}</td>
92         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.2 }}</td>
93         {% if lib.is_archived %}
94           <td ><img src="/static/img/hdd_unmount.png" alt="Archived" /></td>
95         {% else %}
96           <td ></td>
97         {% endif %}
98       </tr>
99       {% endfor %}
100     </tbody>
101   </table>
102   </div>
103   {% endblock %}
104 </div>
105 {% endblock %}