Skip to content

Commit

Permalink
remove no use html
Browse files Browse the repository at this point in the history
  • Loading branch information
pindge committed Jul 18, 2022
1 parent 7aa97d3 commit bd5496f
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions cubedash/templates/products.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,37 +35,37 @@ <h2 class="followed lonesome">{{ (datacube_products | count ) - (hidden_product_
</div>

<table class="data-table">
{% for group_name, product_summaries in grouped_products %}
{% if group_name %}
<thead>
<tr class="section-header">
<th colspan="3" class="group-name">
{{ group_name }}
{{ hanchor(group_name + '-group') }}
</th>
</tr>
</thead>
{% endif %}
<tbody>
{% if grouped_products %}
{% for group_name, product_summaries in grouped_products %}
{% if group_name %}
<thead>
<tr class="section-header">
<th colspan="3" class="group-name">
{{ group_name }}
{{ hanchor(group_name + '-group') }}
</th>
</tr>
</thead>
{% endif %}
{% if product_summaries %}
{% for product, summary in product_summaries %}
{% if product.name not in hidden_product_list %}
<tr class="collapse-when-small">
<td>
<a href="{{ url_for('product_page', product_name=product.name) }}"
>{{ product.name }}</a>
</td>
<td class="{% if (not summary) or summary.dataset_count == 0 %}muted{% endif %}">
{{- product.definition.description -}}
</td>
</tr>
{% endif %}
{% endfor %}
{% else %}
<tr><td>No products in index</td></tr>
<tbody>
{% for product, summary in product_summaries %}
{% if product.name not in hidden_product_list %}
<tr class="collapse-when-small">
<td>
<a href="{{ url_for('product_page', product_name=product.name) }}"
>{{ product.name }}</a>
</td>
<td class="{% if (not summary) or summary.dataset_count == 0 %}muted{% endif %}">
{{- product.definition.description -}}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
{% endif %}
</tbody>
{% endfor %}
{% endfor %}
{% endif %}
</table>
</div>
{% endblock %}

0 comments on commit bd5496f

Please sign in to comment.