'listid': listid,
'dates': dateoptions,
'dateval': dateval,
+ 'archives_root': settings.ARCHIVES_FRONT_ADDRESS,
})
else:
return render(request, 'search/sitesearch.html', {
'firsthit': firsthit,
'lasthit': min(totalhits, firsthit + hitsperpage - 1),
'query': request.GET['q'],
+ 'archives_root': settings.ARCHIVES_FRONT_ADDRESS,
'pagelinks': " ".join(
generate_pagelinks(pagenum,
(totalhits - 1) // hitsperpage + 1,
DO_ESI = False # Generate ESI tags
ARCHIVES_SEARCH_SERVER = "archives.postgresql.org" # Where to post REST request for archives search
ARCHIVES_SEARCH_PLAINTEXT = False # Contact ARCHIVES_SEARCH_SERVER with http instead of https
+ARCHIVES_FRONT_ADDRESS = "https://www.postgresql.org" # Domain to read archives messages
FRONTEND_SMTP_RELAY = "magus.postgresql.org" # Where to relay user generated email
OAUTH = {} # OAuth providers and keys
PGDG_ORG_ID = -1 # id of the PGDG organisation entry
<h2>Results {{firsthit}}-{{lasthit}} of {%if hitcount == 1000%}more than 1000{%else%}{{hitcount}}{%endif%}.</h2>
{%if pagelinks %}Result pages: {{pagelinks|safe}}<br/><br/>{%endif%}
{%for hit in hits %}
- {{forloop.counter0|add:firsthit}}. <a href="https://www.postgresql.org/message-id/{{hit.messageid}}">{{hit.subject}}</a> [{{hit.rank|floatformat:2}}]<br/>
+ {{forloop.counter0|add:firsthit}}. <a href="{{ archives_root }}/message-id/{{hit.messageid}}">{{hit.subject}}</a> [{{hit.rank|floatformat:2}}]<br/>
From {{hit.author}} on {{hit.date}}.<br/>
{{hit.abstract|safe}}<br/>
- <a href="https://www.postgresql.org/message-id/{{hit.messageid}}">https://www.postgresql.org/message-id/{{hit.messageid}}</a><br/>
+ <a href="{{ archives_root }}/message-id/{{hit.messageid}}">{{ archives_root }}/message-id/{{hit.messageid}}</a><br/>
<br/>
{%endfor%}
{%if pagelinks %}Result pages: {{pagelinks|safe}}<br/><br/>{%endif%}