diff options
author | zsloan | 2015-07-07 20:16:39 +0000 |
---|---|---|
committer | zsloan | 2015-07-07 20:16:39 +0000 |
commit | 2498e09f226a8fe936e9e5c2a0e788fee3541b4b (patch) | |
tree | 45e3a397b23fcdffc1fcd65b94a9f3acaa360fc1 | |
parent | e5cd03134e1f1ea39b9703c37e789ddc22f5b8c6 (diff) | |
download | genenetwork2-2498e09f226a8fe936e9e5c2a0e788fee3541b4b.tar.gz |
Also added index column to collections
-rwxr-xr-x | wqflask/wqflask/templates/collections/list.html | 2 | ||||
-rwxr-xr-x | wqflask/wqflask/templates/collections/view.html | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/collections/list.html b/wqflask/wqflask/templates/collections/list.html index 354723d0..f14c0921 100755 --- a/wqflask/wqflask/templates/collections/list.html +++ b/wqflask/wqflask/templates/collections/list.html @@ -15,6 +15,7 @@ <table class="table table-hover" id='trait_table'> <thead> <tr> + <th>Index</th> <th>Name</th> <th>Created</th> <th>Last Changed</th> @@ -25,6 +26,7 @@ <tbody> {% for uc in user_collections %} <tr class="collection_line"> + <td>{{ loop.index }} <td><a class="collection_name" href="{{ url_for('view_collection', uc_id=uc.id) }}">{{ uc.name }}</a></td> <td>{{ timeago(uc.created_timestamp.isoformat() + "Z") }}</td> <td>{{ timeago(uc.changed_timestamp.isoformat() + "Z") }}</td> diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index e41ade7c..053861ae 100755 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -67,7 +67,7 @@ <table class="table table-hover table-striped" id='trait_table'> <thead> <tr> - <th></th> + <th>Index</th> <th>Record</th> <th>Description</th> <th>Location</th> @@ -81,7 +81,7 @@ <tbody> {% for this_trait in trait_obs %} <TR id="trait:{{ this_trait.name }}:{{ this_trait.dataset.name }}"> - <TD> + <TD>{{ loop.index }} <INPUT TYPE="checkbox" NAME="searchResult" class="checkbox trait_checkbox" VALUE="{{ data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name)) }}"> </TD> |