[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 %} {% 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 %}

View File

@@ -4,11 +4,7 @@
{% block content %} {% block content %}
{% for record in results.get_datas() %} {% for record in results.get_datas() %}
{{record_format.block(record, highlight, searchEngine, 'IMGT', false)}}
{% 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)}}
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}

View File

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

View File

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