Cleans up search results page
This commit is contained in:
parent
093945e7fb
commit
4741ada418
@ -26,6 +26,7 @@ class AbstractConnector(ABC):
|
|||||||
self.name = info.name
|
self.name = info.name
|
||||||
self.local = info.local
|
self.local = info.local
|
||||||
self.id = info.id
|
self.id = info.id
|
||||||
|
self.identifier = info.identifier
|
||||||
|
|
||||||
|
|
||||||
def is_available(self):
|
def is_available(self):
|
||||||
|
@ -3,10 +3,11 @@
|
|||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<h2>Search results</h2>
|
<h2>Search results</h2>
|
||||||
{% for result_set in results %}
|
{% for result_set in results %}
|
||||||
|
{% if result_set.results %}
|
||||||
<section>
|
<section>
|
||||||
{% if not result_set.connector.local %}
|
{% if not result_set.connector.local %}
|
||||||
<h3>
|
<h3>
|
||||||
Results from <a href="{{ result_set.connector.base_url }}" target="_blank">{{ result_set.connector.name }}</a>
|
Results from <a href="{{ result_set.connector.base_url }}" target="_blank">{% if result_set.connector.name %}{{ result_set.connector.name }}{% else %}{{ result_set.connector.identifier }}{% endif %}</a>
|
||||||
</h3>
|
</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -16,6 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</section>
|
</section>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user