team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00355
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 541: Customize the web page title based on the search unit
------------------------------------------------------------
revno: 541
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Wed 2013-01-09 20:48:08 +0100
message:
Customize the web page title based on the search unit
modified:
src/alfanous-django/templates/aya_results.html
src/alfanous-django/templates/aya_search.html
src/alfanous-django/templates/base.html
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-django/templates/aya_results.html'
--- src/alfanous-django/templates/aya_results.html 2013-01-08 11:34:10 +0000
+++ src/alfanous-django/templates/aya_results.html 2013-01-09 19:48:08 +0000
@@ -4,9 +4,6 @@
-{% block title %} {{ _("Alfanous - Results to Query:") }} {{ params.query }} {% endblock %}
-
-
{% block results %}
{% if results.error.code == 0 %}
<div id="search_result_static" style="direction:{{ bidi.direction }}; width:800px">
=== modified file 'src/alfanous-django/templates/aya_search.html'
--- src/alfanous-django/templates/aya_search.html 2013-01-08 11:34:10 +0000
+++ src/alfanous-django/templates/aya_search.html 2013-01-09 19:48:08 +0000
@@ -2,6 +2,9 @@
{% load custom_filters %}
+
+
+
{% block options %}
<div class="options" dir="{{ bidi.direction }}">
<input type="checkbox" name="fuzzy" value="True" {{ params.fuzzy|yesno:"checked," }} />
=== modified file 'src/alfanous-django/templates/base.html'
--- src/alfanous-django/templates/base.html 2013-01-08 22:33:33 +0000
+++ src/alfanous-django/templates/base.html 2013-01-09 19:48:08 +0000
@@ -5,7 +5,34 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title> {% block title %} {{ _("Alfanous - Advanced Quranic Search Engine") }} {% endblock %} </title>
+ <title>
+ {% block title %}
+ {% if params.query %}
+ {% if current.unit == "aya" %}
+ {{ _("Ayah Results to Query:") }}
+ {% elif current.unit == "word" %}
+ {{ _("Word Results to Query:") }}
+ {% elif current.unit == "translation" %}
+ {{ _("Translation Results to Query:") }}
+ {% else %}
+ {{ _("Results to Query:") }}
+ {% endif %}
+ {{ params.query }}
+
+ {% else %}
+ {% if current.unit == "aya" %}
+ {{ _("Quranic Verse Search") }}
+ {% elif current.unit == "word" %}
+ {{ _("Quranic Word Search") }}
+ {% elif current.unit == "translation" %}
+ {{ _("Quranic Translation Search") }}
+ {% else %}
+ {{ _("Advanced Quranic Search Engine") }}
+ {% endif %}
+ - {{ _("Alfanous") }}
+ {% endif %}
+ {% endblock %}
+ </title>
<meta name="description" content="{{ _('Alfanous is a functional, dynamic, comprehensive Qur’an search engine that has been effectively designed to carry out simple or advanced Quranic searches.') }}"/>
<meta name="keywords" content="{{ _("quran") }}, {{ _("forqan") }}, {{ _("koran") }}, {{ _("search") }}, {{ _("search engine") }}, {{ _("ayates") }}, {{ _("surates") }}, {{ _("advanced") }}, {{ _("statistics") }}, {{ _("linguistic") }}, {{ _("information retrieval") }}, {{ _("natural language processing") }}, {{ _("words") }}, {{ _("Lantern") }}, {{ _("alfanous") }}, "/>
@@ -209,8 +236,8 @@
<ul class="headermenu">
<li class="menuitem"><span>{{ _("Ayahs") }}</span></li>
{# <li class="menuitem"><a href="/sura/">{{ _("Surahs") }}</a></li> #}
-<li class="menuitem"><a href="{% url alfanous-django.wui.views.results current.language "word" %}">{{ _("Words") }}</a></li>
-<li class="menuitem"><a href="{% url alfanous-django.wui.views.results current.language "translation" %}">{{ _("Translations") }}</a></li>
+<!-- <li class="menuitem"><a href="{% url alfanous-django.wui.views.results current.language "word" %}">{{ _("Words") }}</a></li> -->
+<!-- <li class="menuitem"><a href="{% url alfanous-django.wui.views.results current.language "translation" %}">{{ _("Translations") }}</a></li> -->
{# <li class="menuitem"><a href="/taffsir/">{{ _("Taffsirs") }}</a></li> #}
{# <li class="menuitem"><a href="/hadith/">{{ _("Hadiths") }}</a></li> #}
{# <li class="menuitem"><a href="/dream/">{{ _("Dreams") }}</a></li> #}