{% extends "layout.html" %} {% set active_page = active_page|default("search") %} {% from 'macros.html' import infopopup %} {% block csshead %} {% endblock csshead %} {% block body %} {# Search Box #}
{# Return Paramter dropdown select #}
{# Input Search Filter Box #}
{{searchform.searchbox.label}}
{{searchform.searchbox(class_='form-control', placeholder=placeholder)}} {{searchform.submitsearch(class_='form-control btn btn-default')}}
{# Guided Query Builder button for Modal #}
{# Search Validation Errors #} {% if searchform.errors %}

Form Validation Errors: Please try again!

{% else %} {% if formparams %} {# Search Results #} {% if results %}

Search results

Using filter: {{filter}}

Total Count: {{count}}, Showing Results: {{reslen}}
{% if runtime < 20 %}
Query Runtime: {{runtime}} seconds
{% else %}
Query Runtime: {{runtime}} seconds
Your query took longer than 20 seconds. Consider revising your query filter and limiting your return parameters.
{% endif %}
{# Info PopUp #}
{{infopopup('See how to do it in Python', 'Marvin Query - start iPython', querystring, 'marvinquery', 'warning')}}
{# Table #}
View Galaxies
{% else %} {% if errmsg %}

Search Error

{{errmsg}}

{% else %}

Search results

Using filter: {{filter}}

No results found

{% endif %} {% endif %} {% endif %} {% endif %} {# Guided Search Modal Window #} {% endblock body %} {% block code %} {% endblock code %}