Skip to content
Snippets Groups Projects
Commit 9e14ba160e9c authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[views] add a title for esearch view

parent a26b16bb6ec5
No related branches found
No related tags found
No related merge requests found
msgid ""
msgstr ""
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
......@@ -3,7 +4,6 @@
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
......@@ -9,1 +9,3 @@
msgid "Search"
msgstr ""
msgid ""
msgstr ""
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
......@@ -3,7 +4,6 @@
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
......@@ -9,1 +9,3 @@
msgid "Search"
msgstr ""
msgid ""
msgstr ""
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
......@@ -3,7 +4,6 @@
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
......@@ -9,1 +9,3 @@
msgid "Search"
msgstr "Recherche"
......@@ -25,6 +25,7 @@
from logilab.mtconverter import xml_escape
import cwtags.tag as t
from cubicweb import _
from cubicweb.view import StartupView
from cubes.elasticsearch.es import indexable_types, get_connection
......@@ -84,6 +85,7 @@
previous_link = u' < '
next_link = u' > '
middle_link = u" · " * 3
title = _('Search')
def render_search_comp(self):
search_comp = self._cw.vreg['components'].select_or_none('search-comp',
......@@ -138,7 +140,7 @@
# TODO if no ES configuration, redirect or display warning
self.render_search_comp()
query_string = self._cw.form.get('q', self._cw.form.get('search', ''))
self.w(u'<h1>%s</h1>' % self._cw._('Recherche'))
self.w(u'<h1>%s</h1>' % self._cw._(self.title))
response = self.do_search(query_string)
if response.hits.total:
self.w(u'<h2>Resultats pour : <em>%s</em></h2>' %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment