{% include 'components/search_bar.html' %}
{% for item in info['response'] %}
{% if item['type']=='string' %}
{% if item['content'][0:6]=='SELECT' %}
{% else%}
{% if item['content'].startswith('%bold%') %}
{{ item['content'].replace('%bold%', '') }}
{% elif item['content'].startswith('%header%') %}
{{ item['content'].replace('%header%', '') }}
{% elif item['content'] == '%start_border%' %}
{% elif item['content'] == '%end_border%' %}
{% elif item['content'] == '%start_column%' %}
{% elif item['content'] == '%end_column%' %}
{% elif item['content'] == '%start_row%' %}
{% elif item['content'] == '%end_row%' %}
{% else%}
{{ item['content'] }}
{% endif %}
{% endif %}
{% elif item['type']=='error' %}
{{ item['content'] }}
{% elif item['type']=='dictoflist' %}
{% for row in item['content']['columns'] %}
{{ row }} |
{% endfor %}
{% for row in item['content']['results'] %}
{% for col in row %}
{% if col.startswith('https://') or col.startswith('http://') %}
{{ col }} |
{% else%}
{{ col }} |
{% endif %}
{% endfor %}
{% endfor %}
{% elif item['type']=='listoflist' %}
{% for row in item['content'] %}
{% for col in row %}
{{ col }} |
{% endfor %}
{% endfor %}
{% elif item['type']=='list' %}
{% for row in item['content'] %}
{% endfor %}
{% else%}
not picked up: {{ item['type'] }}
{% endif %}
{% endfor %}