diff options
author | Frederick Muriuki Muriithi | 2024-10-07 10:58:00 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-07 10:58:00 -0500 |
commit | dc9799a7f2c5771b770a8d3d825fff6cf5e78d58 (patch) | |
tree | 5496db7546900f40725fadbd33ff64815bcf1cce /uploader/templates/phenotypes/view-dataset.html | |
parent | ce4a12ffcabf6b7e73db0400bd087e3609bbf4b7 (diff) | |
download | gn-uploader-dc9799a7f2c5771b770a8d3d825fff6cf5e78d58.tar.gz |
Generalise pagination and paginate phenotypes
Generalise the code generating table pagination UI, and use it to
paginate the list of phenotypes.
Diffstat (limited to 'uploader/templates/phenotypes/view-dataset.html')
-rw-r--r-- | uploader/templates/phenotypes/view-dataset.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html index e2ccb60..5a17755 100644 --- a/uploader/templates/phenotypes/view-dataset.html +++ b/uploader/templates/phenotypes/view-dataset.html @@ -1,5 +1,6 @@ {%extends "phenotypes/base.html"%} {%from "flash_messages.html" import flash_all_messages%} +{%from "macro-table-pagination.html" import table_pagination%} {%from "populations/macro-display-population-card.html" import display_population_card%} {%block title%}Phenotypes{%endblock%} @@ -51,9 +52,8 @@ <h2>Phenotype Data</h2> <p>This dataset has a total of {{phenotype_count}} phenotypes.</p> - <p class="text-warning"> - <span class="glyphicon glyphicon-exclamation-sign"></span> - Display pagination controls here …</p> + + {{table_pagination(start_from, count, phenotype_count, url_for('species.populations.phenotypes.view_dataset', species_id=species.SpeciesId, population_id=population.Id, dataset_id=dataset.Id), "phenotypes")}} <table class="table"> <thead> |