Commit 37f39a77 authored by Adrian Cochrane's avatar Adrian Cochrane

Draft search UI.

parent 53850085
<aside>{% for resource in search_results %}
<details>
<summary>
<a href="/network/{{ resource.id }}" replace="main" title="View '{{ resource.name }}'">
<img src="icon:{{ resource.mimetype }}" alt="{{ resource.mimetype }}" />
</a>
<a href="preview/{{ resource.id }}" replace="main > section" title="Preview '{{ resource.name }}'">
{{ resource.name }}
</a>
</summary>
<ul>{% for occurance in resource.occurances %}
<li>
<a href="{{ occurance.link }}" replace="main" title="View {{ occurance.type }}">
<img src="{{ occurance.icon }}" alt="{{ occurance.type }}" />
</a>
<a href="preview/{{ resource.id }}/{{ occurance.id }}#source#{{ occurance.line_number }}" replace="main > section">
{{ resource.preview }}
</a>
</li>
{% empty %}
<li>No occurances</li>
{% endfor %}
</details>
{% empty %}
<p>No matches</p>
{% endfor %}
</aside>
<section>Click a name to preview it here.</section>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment