@@ -145,7 +145,11 @@ <h3 style="margin: 0;">Scores dataset</h3>
145145 {% for var in scores_variants %}
146146 < tr >
147147 {% for data in var.get_ordered_scores_data %}
148- < td > {{ data }} </ td >
148+ {% if forloop.counter > = 2 %}
149+ < td > {{ data|floatformat:"-4" }} </ td >
150+ {% else %}
151+ < td > {{ data }} </ td >
152+ {% endif %}
149153 {% endfor %}
150154 </ tr >
151155 {% endfor %}
@@ -155,43 +159,65 @@ <h3 style="margin: 0;">Scores dataset</h3>
155159
156160 <!-- Pagination -->
157161 {% if scores_variants.has_other_pages %}
158- < ul class ="pagination justify-content-end ">
159- {% if scores_variants.has_previous %}
160- < li class ="page-item ">
161- < a class ="page-link "
162- href ="?scores_page={{ scores_variants.previous_page_number }}#scores ">
163- «
164- </ a >
165- </ li >
166- {% else %}
167- < li class ="page-item disabled ">
168- < a class ="page-link " href ="# ">
169- < span aria-hidden ="true "> «</ span >
170- </ a >
171- </ li >
172- {% endif %}
162+ < div class ="row ">
163+ < div class ="col-md-2 mt-2 ">
164+ < form action ="?scores-per-page=#scores " method ="GET ">
165+ < div class ="form-inline ">
166+ < label for ="per-page-select "> Variants per page </ label >
167+ < select name ="scores-per-page " id ="per-page-select " onchange ="this.form.submit() ">
168+ {% for i in per_page_selections %}
169+ {% if i == scores_per_page %}
170+ < option value ={{i}} selected =""> {{i}}</ option >
171+ {% else %}
172+ < option value ={{i}} > {{i}}</ option >
173+ {% endif %}
174+ {% endfor %}
175+ </ select >
176+ </ div >
177+ </ form >
178+ </ div >
173179
174- {% for i in scores_page_range %}
175- < li class ="page-item ">
176- < a class ="page-link " href ="?scores_page={{ i }}#scores "> {{ i }}</ a >
177- </ li >
178- {% endfor %}
179-
180- {% if scores_variants.has_next %}
181- < li class ="page-item ">
182- < a class ="page-link "
183- href ="?scores_page={{ scores_variants.next_page_number }}#scores ">
184- »
185- </ a >
186- </ li >
187- {% else %}
188- < li class ="page-item disabled ">
189- < a class ="page-link " href ="# ">
190- < span aria-hidden ="true "> »</ span >
191- </ a >
192- </ li >
193- {% endif %}
194- </ ul >
180+ < div class ="col-md-10 ">
181+ < ul class ="pagination justify-content-end ">
182+ {% if scores_variants.has_previous %}
183+ < li class ="page-item ">
184+ < a class ="page-link "
185+ href ="?scores_page={{ scores_variants.previous_page_number }}#scores ">
186+ «
187+ </ a >
188+ </ li >
189+ {% else %}
190+ < li class ="page-item disabled ">
191+ < a class ="page-link " href ="# ">
192+ < span aria-hidden ="true "> «</ span >
193+ </ a >
194+ </ li >
195+ {% endif %}
196+
197+ {% for i in scores_page_range %}
198+ < li class ="page-item ">
199+ < a class ="page-link " href ="?scores_page={{ i }}#scores "> {{ i }}</ a >
200+ </ li >
201+ {% endfor %}
202+
203+ {% if scores_variants.has_next %}
204+ < li class ="page-item ">
205+ < a class ="page-link "
206+ href ="?scores_page={{ scores_variants.next_page_number }}#scores ">
207+ »
208+ </ a >
209+ </ li >
210+ {% else %}
211+ < li class ="page-item disabled ">
212+ < a class ="page-link " href ="# ">
213+ < span aria-hidden ="true "> »</ span >
214+ </ a >
215+ </ li >
216+ {% endif %}
217+ </ ul >
218+ </ div >
219+ </ div >
220+
195221 {% endif %} <!-- End pagination -->
196222 {% endif %}
197223 </ div >
@@ -235,7 +261,11 @@ <h3 style="margin: 0;">Counts dataset</h3>
235261 {% for var in counts_variants %}
236262 < tr >
237263 {% for data in var.get_ordered_counts_data %}
238- < td > {{ data }} </ td >
264+ {% if forloop.counter > = 2 %}
265+ < td > {{ data|floatformat:"-4" }} </ td >
266+ {% else %}
267+ < td > {{ data }} </ td >
268+ {% endif %}
239269 {% endfor %}
240270 </ tr >
241271 {% endfor %}
@@ -245,43 +275,64 @@ <h3 style="margin: 0;">Counts dataset</h3>
245275
246276 <!-- Pagination -->
247277 {% if counts_variants.has_other_pages %}
248- < ul class ="pagination justify-content-end ">
249- {% if counts_variants.has_previous %}
250- < li class ="page-item ">
251- < a class ="page-link "
252- href ="?counts_page={{ counts_variants.previous_page_number }}#counts ">
253- «
254- </ a >
255- </ li >
256- {% else %}
257- < li class ="page-item disabled ">
258- < a class ="page-link " href ="# ">
259- < span aria-hidden ="true "> «</ span >
260- </ a >
261- </ li >
262- {% endif %}
263-
264- {% for i in counts_page_range %}
265- < li class ="page-item ">
266- < a class ="page-link " href ="?counts_page={{ i }}#counts "> {{ i }}</ a >
267- </ li >
268- {% endfor %}
269-
270- {% if counts_variants.has_next %}
271- < li class ="page-item ">
272- < a class ="page-link "
273- href ="?counts_page={{ counts_variants.next_page_number }}#counts ">
274- »
275- </ a >
276- </ li >
277- {% else %}
278- < li class ="page-item disabled ">
279- < a class ="page-link " href ="# ">
280- < span aria-hidden ="true "> »</ span >
281- </ a >
282- </ li >
283- {% endif %}
284- </ ul >
278+ < div class ="row ">
279+ < div class ="col-md-2 mt-2 ">
280+ < form action ="?counts-per-page=#counts " method ="GET ">
281+ < div class ="form-inline ">
282+ < label for ="per-page-select "> Variants per page </ label >
283+ < select name ="counts-per-page " id ="per-page-select " onchange ="this.form.submit() ">
284+ {% for i in per_page_selections %}
285+ {% if i == counts_per_page %}
286+ < option value ={{i}} selected =""> {{i}}</ option >
287+ {% else %}
288+ < option value ={{i}} > {{i}}</ option >
289+ {% endif %}
290+ {% endfor %}
291+ </ select >
292+ </ div >
293+ </ form >
294+ </ div >
295+
296+ < div class ="col-md-10 ">
297+ < ul class ="pagination justify-content-end ">
298+ {% if counts_variants.has_previous %}
299+ < li class ="page-item ">
300+ < a class ="page-link "
301+ href ="?counts_page={{ counts_variants.previous_page_number }}#counts ">
302+ «
303+ </ a >
304+ </ li >
305+ {% else %}
306+ < li class ="page-item disabled ">
307+ < a class ="page-link " href ="# ">
308+ < span aria-hidden ="true "> «</ span >
309+ </ a >
310+ </ li >
311+ {% endif %}
312+
313+ {% for i in counts_page_range %}
314+ < li class ="page-item ">
315+ < a class ="page-link " href ="?counts_page={{ i }}#counts "> {{ i }}</ a >
316+ </ li >
317+ {% endfor %}
318+
319+ {% if counts_variants.has_next %}
320+ < li class ="page-item ">
321+ < a class ="page-link "
322+ href ="?counts_page={{ counts_variants.next_page_number }}#counts ">
323+ »
324+ </ a >
325+ </ li >
326+ {% else %}
327+ < li class ="page-item disabled ">
328+ < a class ="page-link " href ="# ">
329+ < span aria-hidden ="true "> »</ span >
330+ </ a >
331+ </ li >
332+ {% endif %}
333+ </ ul >
334+ </ div >
335+ </ div >
285336 {% endif %} <!-- End pagination -->
286337 {% endif %}
287338 </ div >
0 commit comments