{% from 'ruler.macro.html' import ruler %} {% macro sort_url(title, sort, context, page=1) %} {{title}} {% endmacro %} {% macro paginate(context, num_results, per_page, current_page) %} {% endmacro %} {% macro domain_table(domains, sortable=False, context=None, extra=None, extra_args=None) %} {% if not sortable %} {% else %} {% endif %} {% for domain in domains %} {% endfor %}
Domain Title Updated
{{sort_url("Domain", "domain", context, 1) }} {{sort_url("Title", "title", context, 1) }} {{sort_url("Updated", "last_seen", context, 1) }}
{{domain.host}} {{domain.title}} {% if domain.is_genuine %} [G] {% endif %} {% if domain.is_fake %} [F] {% endif %} {% if extra %} {{extra(domain, extra_args)}} {% endif %} {{Domain.time_ago(domain.last_alive)}}
{% endmacro %} {% macro domain_fulltext_table(domains, results, sortable=False, context=None) %} {% if not sortable %} {% else %} {% endif %} {% for domain in domains %} {% endfor %} {% for hit in results.hits %} {% set domain = Domain.get(id=hit.domain_id) %} {% if domain != None %} {% endif %} {% endfor %}
Domain Title Updated
Domain Title Updated
{{domain.host}} {{domain.title}} {% if domain.is_genuine %} [G] {% endif %} {% if domain.is_fake %} [F] {% endif %} {% if extra %} {{extra(domain, extra_args)}} {% endif %} {{Domain.time_ago(domain.last_alive)}}
{{domain.host}} {{hit.title if hit.title.strip()!="" else "No Title"}} {% if domain.is_genuine %} [G] {% endif %} {% if domain.is_fake %} [F] {% endif %}
{{Domain.time_ago(domain.last_alive)}}
{% endmacro %}