-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted search results for long file names
- Loading branch information
Showing
2 changed files
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
{% load i18n %} | ||
|
||
<h4> | ||
<span class="entity">{{ result.entity_type }}</span> | ||
<a href="{{ result.url }}">{{ result.main_label }}</a> | ||
</h4> | ||
{% if result.image %} | ||
<img src="{{ result.image }}" class="thumb-60 pull-left"> | ||
{% endif %} | ||
<table class="table entity-attributes"> | ||
{% for attr in result.attributes %} | ||
<tr> | ||
<td class="col-md-3"><strong>{{ attr.0 }}</strong></td> | ||
<td class="col-md-9">{{ attr.1 }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
<div class="search-result-item"> | ||
<h4> | ||
<span class="entity">{{ result.entity_type }}</span> | ||
<a href="{{ result.url }}">{{ result.main_label }}</a> | ||
</h4> | ||
<div class="media"> | ||
{% if result.image %} | ||
<div class="media-left"> | ||
<img src="{{ result.image }}" class="thumb-60"> | ||
</div> | ||
{% endif %} | ||
<div class="media-body"> | ||
<table class="table entity-attributes"> | ||
{% for attr in result.attributes %} | ||
<tr> | ||
<td class="col-md-3"><strong>{{ attr.0 }}</strong></td> | ||
<td class="col-md-9">{{ attr.1 }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
</div> | ||
</div> |