diff --git a/isic/core/templates/core/collection_table.html b/isic/core/templates/core/collection_table.html new file mode 100644 index 00000000..e5d1103c --- /dev/null +++ b/isic/core/templates/core/collection_table.html @@ -0,0 +1,132 @@ +{% extends 'core/base.html' %} +{% load humanize %} +{% load partials %} + +{% partialdef sortable-header %} +
| DOI | +Images | +Lesions | +Patients | + {% with field="created" label="Created" %}{% partial sortable-header %}{% endwith %} +Description | +|||
|---|---|---|---|---|---|---|---|
| + + {% if collection.pinned %}{% endif %} + {{ collection.name }} + + | ++ {% if collection.public %}{% else %}{% endif %} + | ++ {% if collection.doi %} + {{ collection.doi.id }} + {% else %} + - + {% endif %} + | ++ {% if collection.counts.image_count is not None %}{{ collection.counts.image_count|intcomma }}{% else %}-{% endif %} + | ++ {% if collection.counts.lesion_count is not None %}{{ collection.counts.lesion_count|intcomma }}{% else %}-{% endif %} + | ++ {% if collection.counts.patient_count is not None %}{{ collection.counts.patient_count|intcomma }}{% else %}-{% endif %} + | ++ {{ collection.created|date:"Y-m-d" }} + | ++ {{ collection.description|truncatechars:50 }} + | +
| + No collections found. + | +|||||||