{# @description One search result: a link with its title, where it comes from and a passage. Compact in the search dialog, with the kind's icon on the results page. #}
{# @prop result:object | description:"The mvp.search.Result to draw." #}
{# @prop compact:boolean | description:"Draw it as an option in the dialog's listbox, without the icon." #}
{# @prop icon:text | description:"The icon name of the result's kind. Drawn when not compact." #}
{% load i18n %}
{% if compact %}
{{ result.title }}
{{ result.where }}
{% if result.passage %}{{ result.passage }}{% endif %}
{% else %}
{% if icon %}{% endif %}
{{ result.title }}
{{ result.where }}
{% if result.passage %}{{ result.passage }}{% endif %}
{% endif %}