mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
[SearchEngine] Update templates
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
{% import 'prod/results/record.html.twig' as record_format %}
|
{% import 'prod/results/record.html.twig' as record_format %}
|
||||||
|
|
||||||
{% if results.get_error() %}
|
{% if results.error() %}
|
||||||
<div>{{results.get_error()}}</div>
|
<div>{{results.error()}}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if results.get_warning() %}
|
{% if results.warning() %}
|
||||||
<div>{{results.get_warning()}}</div>
|
<div>{{results.warning()}}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if suggestions %}
|
{% if suggestions %}
|
||||||
|
@@ -4,10 +4,6 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% for record in results.get_datas() %}
|
{% 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 %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@@ -4,11 +4,8 @@
|
|||||||
|
|
||||||
{% import 'common/caption_templates/answer.html.twig' as caption %}
|
{% 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'>
|
<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'>
|
<table style='width:100%;' cellspacing='0' cellpadding='0' border='0'>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" style='width:{{th_size+50}}px'>
|
<td valign="top" style='width:{{th_size+50}}px'>
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
{% if results.get_error() %}
|
{% if results.error() %}
|
||||||
<div>{{results.get_error()}}</div>
|
<div>{{results.error()}}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if results.get_warning() %}
|
{% if results.warning() %}
|
||||||
<div>{{results.get_warning()}}</div>
|
<div>{{results.warning()}}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user