diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-03-01 10:41:56 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2016-03-01 10:41:56 +0100 |
| commit | 308613e586108fd7b713fc2a14f8200a0a781105 (patch) | |
| tree | 9584ab403f132083c480ae206213672f8bd42e58 /searx/templates/default | |
| parent | 45b5073f3e10cad68ddda6a1a83d3273a3d734fc (diff) | |
| parent | 8f3b33de23090e6d11a5a29a239719bb6915d2ec (diff) | |
Merge pull request #513 from a01200356/wolframalpha
WolframAlpha infobox
Diffstat (limited to 'searx/templates/default')
| -rw-r--r-- | searx/templates/default/infobox.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/searx/templates/default/infobox.html b/searx/templates/default/infobox.html index 1733f7753..178a27e6d 100644 --- a/searx/templates/default/infobox.html +++ b/searx/templates/default/infobox.html @@ -7,7 +7,14 @@ <div class="attributes"> <table> {% for attribute in infobox.attributes %} - <tr><td>{{ attribute.label }}</td><td>{{ attribute.value }}</td></tr> + <tr> + <td>{{ attribute.label }}</td> + {% if attribute.image %} + <td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td> + {% else %} + <td>{{ attribute.value }}</td> + {% endif %} + </tr> {% endfor %} </table> </div> |