mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
[SearchEngine] Update templates
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{% import 'prod/results/record.html.twig' as record_format %}
|
||||
|
||||
{% if results.get_error() %}
|
||||
<div>{{results.get_error()}}</div>
|
||||
{% if results.error() %}
|
||||
<div>{{results.error()}}</div>
|
||||
{% else %}
|
||||
{% if results.get_warning() %}
|
||||
<div>{{results.get_warning()}}</div>
|
||||
{% if results.warning() %}
|
||||
<div>{{results.warning()}}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if suggestions %}
|
||||
|
@@ -4,11 +4,7 @@
|
||||
{% block content %}
|
||||
|
||||
{% for record in results.get_datas() %}
|
||||
|
||||
{% set ident = record.get_base_id ~ ' ' ~ record.get_record_id%}
|
||||
{% set sbas_id = record.get_sbas_id %}
|
||||
|
||||
{{record_format.block(record, highlight, searchEngine, 'IMGT', false)}}
|
||||
{{record_format.block(record, highlight, searchEngine, 'IMGT', false)}}
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
@@ -4,11 +4,8 @@
|
||||
|
||||
{% import 'common/caption_templates/answer.html.twig' as caption %}
|
||||
|
||||
{% for record in results.get_datas() %}
|
||||
{% for record in results.results() %}
|
||||
<div class='list ui-corner-all'>
|
||||
|
||||
{% set ident = record.get_base_id ~ ' ' ~ record.get_record_id%}
|
||||
{% set sbas_id = record.get_sbas_id %}
|
||||
<table style='width:100%;' cellspacing='0' cellpadding='0' border='0'>
|
||||
<tr>
|
||||
<td valign="top" style='width:{{th_size+50}}px'>
|
||||
|
@@ -1,9 +1,9 @@
|
||||
|
||||
{% if results.get_error() %}
|
||||
<div>{{results.get_error()}}</div>
|
||||
{% if results.error() %}
|
||||
<div>{{results.error()}}</div>
|
||||
{% else %}
|
||||
{% if results.get_warning() %}
|
||||
<div>{{results.get_warning()}}</div>
|
||||
{% if results.warning() %}
|
||||
<div>{{results.warning()}}</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user