[SearchEngine] Update templates

This commit is contained in:
Romain Neutron
2012-08-24 11:38:12 +02:00
parent af62aba6e3
commit b10ae5e6f5
4 changed files with 10 additions and 17 deletions

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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'>

View File

@@ -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 %}