{# Macros shared by the search results table and the downloader lookup fragment. #} {% macro clean_slate_link(path, album_id=None, item_id=None) -%} {%- if album_id -%} Clean-slate import from here {%- elif item_id -%} Clean-slate import from here {%- else -%} Import from here {%- endif -%} {%- endmacro %} {% macro inferred_path_cell(path, album_id=None, item_id=None) -%} {{ path }} (inferred via downloader) {{ clean_slate_link(path, album_id, item_id) }} {%- endmacro %}
{{ path }}