team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00341
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 525: fix some rtl issues in the wui for Arabic localizaton
------------------------------------------------------------
revno: 525
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Mon 2013-01-07 21:09:13 +0100
message:
fix some rtl issues in the wui for Arabic localizaton
modified:
src/alfanous-django/templates/aya_search.html
src/alfanous-django/templates/base.html
src/alfanous-django/templates/results.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_search.html'
--- src/alfanous-django/templates/aya_search.html 2013-01-06 18:31:20 +0000
+++ src/alfanous-django/templates/aya_search.html 2013-01-07 20:09:13 +0000
@@ -3,12 +3,14 @@
{% load custom_filters %}
{% block options %}
+<div class="options" dir="{{ bidi }}">
<input type="checkbox" name="fuzzy" value="True" {{ params.fuzzy|yesno:"checked," }} />
<span class="xtitle">{{ _("Fuzzy search") }} </span>
<input type="checkbox" name="vocalized" value="False" {{ params.vocalized|yesno:"checked," }} />
<span class="xtitle">{{ _("Unvocalized text") }} </span>
<input type="checkbox" name="script" value="uthmani" {{ params.script|yesno:"checked," }} />
<span class="xtitle">{{ _("Uthmani script") }} </span>
+</div>
<br/>
{% endblock %}
@@ -117,7 +119,7 @@
{% with results.search.interval.page|add:"-1"|stringformat:"s" as prev_page %}
<a class='no_decoration' href='?{% build_search_link params params.query prev_page False%}'>
{% endwith %}
- <img src='/static/images/prev_en.gif' alt='Previous page' title = 'Previous page' />
+ <img src='/static/images/prev{{ image_extension }}.gif' alt='Previous page' title = 'Previous page' />
</a>
{% endif %}
<div style=' display:inline-block; position:relative; top:-8px;'>
@@ -142,7 +144,7 @@
{% with results.search.interval.page|add:"+1"|stringformat:"s" as next_page %}
<a class='no_decoration' href='?{% build_search_link params params.query next_page False%}'>
{% endwith %}
- <img src='/static/images/next_en.gif' alt='Next page' title = 'Next page' /></a>
+ <img src='/static/images/next{{ image_extension }}.gif' alt='Next page' title = 'Next page' /></a>
{% endif %}
</div>
=== modified file 'src/alfanous-django/templates/base.html'
--- src/alfanous-django/templates/base.html 2013-01-07 19:27:14 +0000
+++ src/alfanous-django/templates/base.html 2013-01-07 20:09:13 +0000
@@ -239,7 +239,7 @@
<tr>
<td style="background:url(/static/images/main_table_02.png) no-repeat;width:50px;height:26px"> </td>
<td style="background:url(/static/images/main_table_03.png) no-repeat;width:259px;height:26px">
- <input id="search_box" name="query" class="enter keyboardInput" type="text" value="{{ params.query }}" />
+ <input style="direction: {{ bidi }} ; text-align:{{ align }}" id="search_box" name="query" class="enter keyboardInput" type="text" value="{{ params.query }}" />
</td>
<td style="background:url(/static/images/main_table_04.png) repeat scroll 0 0 transparent;width:62;height:26;text-align:right;">
<a class="button" href="" onclick="$('#form').submit(); return false;">{{ _("search") }}</a>
@@ -309,7 +309,7 @@
{% endblock %}
<br />
-<div class="xdrops_continer" style="direction:{{ bidi }}; text-align:right; width: 342px;">
+<div class="xdrops_continer" style="direction:{{ bidi }}; text-align:{{ align_inverse }}; width: 342px;">
<span class="xtitle">{{ _("View") }} :</span>
<select id="view" class="styled" name="view" >
<option value="default" {% ifequal params.view "default" %}selected{% endifequal %}>{{ _("Default") }}</option>
=== modified file 'src/alfanous-django/templates/results.html'
--- src/alfanous-django/templates/results.html 2013-01-06 13:37:08 +0000
+++ src/alfanous-django/templates/results.html 2013-01-07 20:09:13 +0000
@@ -143,7 +143,7 @@
{% for ayaresult_id, ayaresult_content in results.search.ayas.items %}
<fieldset class='main_re_item'>
- <legend class='main_re_item_title' style='font-size:14pt; ' dir='ltr'>
+ <legend class='main_re_item_title' style='font-size:14pt; ' dir='{{ bidi }}'>
<span align='left' style='color:#0000ff;'>
{{ _("Result n°") }} <b> {{ ayaresult_id }} </b>
</span>