@@ -24,7 +24,8 @@ <h3 class="pull-left">Collections</h3>
2424 < table id ="collections-table " class ="table collex-table sortable_table table-striped table-hover ">
2525 < thead >
2626 < th > </ th >
27- < th class ="id-col "> ID</ th >
27+ < th class ="id-col "> Name</ th >
28+ < th > Explore Images</ th >
2829 < th class ="collex-type-col "> Collection Type</ th >
2930 < th class ="access-col "> Access</ th >
3031 < th class ="cancer-type-col "> Cancer Type</ th >
@@ -35,41 +36,55 @@ <h3 class="pull-left">Collections</h3>
3536 </ thead >
3637 < colgroup >
3738 < col style ="width: 3% ">
38- < col style ="width: 12 % ">
39+ < col style ="width: 16 % ">
3940 < col style ="width: 8% ">
4041 < col style ="width: 8% ">
42+ < col style ="width: 4% ">
43+ < col style ="width: 20% ">
4144 < col style ="width: 13% ">
4245 < col style ="width: 8% ">
43- < col style ="width: 8% ">
44- < col style ="width: 9% ">
46+ < col style ="width: 15% ">
4547 < col style ="width: 9% ">
4648 </ colgroup >
4749 < tbody >
4850 {% for collection in active_collections %}
49- {% with collex_type =collection.get_collection_type %}
51+ {% with collex_type_display =collection.get_collection_type %}
5052 < tr >
5153 < td class ="details-control " data-doi ="{{ collection.doi }} "
5254 data-source-url ="{{ collection.source_url }} "
5355 data-collex-id ="{{ collection.collection_id }} "
5456 title ="Click to display collection description. "
5557 >
5658 < i class ="fa-solid fa-circle-plus show-button "> </ i > < i class ="fa-solid fa-circle-minus hide-button "> </ i > </ td >
59+ < td class ="collection-name "
60+ >
61+ < a class ="collex-table-tip "
62+ data-tooltip ="View this {{ collex_type_display }}'s page (opens a new tab). "
63+ {% if collection.collection_type == 'A ' %}
64+ href ="/analysis_results/{{ collection.collection_id }} " target ="_blank " rel ="nofollow noreferrer ">
65+ {{ collection.collection_id }}
66+ {% else %}
67+ href="/collections/{{ collection.collection_id }}" target="_blank" rel="nofollow noreferrer">
68+ {% if collection.tcia_collection_id|length == 0 %}
69+ {{ collection.name }}
70+ {% else %}
71+ {{ collection.tcia_collection_id }}
72+ {% endif %}
73+ {% endif %}
74+ </ a >
75+ </ td >
5776 < td class ="collection-explore "
5877 data-collex-id ="{{ collection.collection_id }} "
5978 data-collex-collex ="{{ collection.collections }} "
60- data-collex-type ="{{ collex_type }} "
79+ data-collex-type ="{{ collection.collection_type }} "
6180 >
62- < a role ="button " >
63- {% if collex_type == 'Analysis' %}
64- {{ collection.collection_id }}
65- {% elif collection.tcia_collection_id|length == 0 %}
66- {{ collection.name }}
67- {% else %}
68- {{ collection.tcia_collection_id }}
69- {% endif %}
81+ < a role ="button " class ="collex-table-tip "
82+ data-tooltip ="Open the data explorer filtered to this {{ collex_type_display }}. "
83+ >
84+ < i class ="fa-solid fa-eye "> </ i >
7085 </ a >
7186 </ td >
72- < td > {{ collection.get_collection_type }}</ td >
87+ < td > {{ collex_type_display }}</ td >
7388 < td > {{ collection.access }}</ td >
7489 < td > {{ collection.cancer_type }}</ td >
7590 < td > {{ collection.image_types }}</ td >
@@ -94,6 +109,7 @@ <h3 class="pull-left">Collections</h3>
94109 {{ active_collection_descs|json_script:"collection_descs" }}
95110 {{ block.super }}
96111 < script type ="text/javascript " src ="{% static 'js/collections_list.js' %}?v={{ APP_VERSION }} "> </ script >
112+ < script type ="text/javascript " src ="{% static 'js/tooltips.js' %}?v={{ APP_VERSION }} "> </ script >
97113 < script >
98114 const collection_descs = JSON . parse ( document . getElementById ( 'collection_descs' ) . textContent ) ;
99115 </ script >
0 commit comments