{% extends "static_map.html" %} {%- macro print_type_classes(type, marked) -%} {%- set classes = [] -%} {%- if type -%} {%- set _ = classes.append('scrapbook-type-' + type) -%} {%- endif -%} {%- if marked -%} {%- set _ = classes.append('scrapbook-type-marked') -%} {%- endif -%} {{ print_attr('class', classes | join(' ')) }} {%- endmacro -%} {%- macro print_attr(attr, value, prefix=' ') -%} {%- if value -%} {{ prefix + attr }}="{{ value }}" {%- endif -%} {%- endmacro -%} {% block static_index -%}
{%- set indent = ' ' -%} {%- for item in static_index -%} {%- set event, level, id, type, marked, title, url, icon, source, comment = item -%} {%- if event == 'start-container' %} {{ indent * level }} {%- elif event == 'start' %} {{ indent * level }} {{ indent * (level + 1) }}
{%- if type != 'separator' -%} {%- if not icon -%} {%- set icon = default_icons.get(type, default_icons['']) -%} {%- endif -%} {{ title }} {%- if type != 'bookmark' and source -%} {%- endif -%} {%- else -%}
 {{ title }} 
{%- endif -%}
{%- elif event == 'end' %} {{ indent * level }} {%- endif -%} {%- endfor %}
{% endblock %}