correct logic for displaying web apps and openwithlist
{% endif %}
{% if relevant_tools %}
{% for tool in relevant_tools.tool_list %}
- {% if tool.agg_types or tool.file_extensions and tool.openwithlist %}
+ {% if tool.openwithlist %}
+ {% if tool.agg_types or tool.file_extensions %}
<li class="btn-open-with" data-menu-name="web-app" agg-types="{{ tool.agg_types }}" file-extensions="{{ tool.file_extensions }}" url_aggregation="{% url 'tracking-applaunch' %}?url={{tool.url_aggregation|urlencode}};name={{tool.title}}" url_file="{% url 'tracking-applaunch' %}?url={{tool.url_file|urlencode}};name={{tool.title}}" agg-types="{{ tool.agg_types }}" file-extensions="{{ tool.file_extensions }}">
<img class="file-options-webapp-icon" src="{{ tool.icon_url }}">
{% if tool.title|length > 20 %}
{% endif %}
</li>
{% endif %}
+ {% endif %}
{% endfor %}
{% endif %}
</ul>
{% if not metadata_form %}
<div class="row">
{% for tool in relevant_tools.tool_list %}
- {% if not tool.agg_types or tool.file_extensions %}
<div class="col-lg-3 col-md-4 col-sm-12">
<div title="{{ tool.title }}" id="web-app-item">
{% if tool.approved %}
</a>
</div>
</div>
- {% endif %}
{% endfor %}
</div>
{% else %}
