Permalink
Browse files

Resolves issues with the body of the message and locale title.

Especially so when the site is set to locale with RTL but messages
are LTR.
  • Loading branch information...
1 parent a256981 commit c7508a2b3c04a72efac10cf0304a4af78e7071ad @nigelbabu nigelbabu committed with davedash Jul 19, 2011
Showing with 5 additions and 3 deletions.
  1. +2 −2 apps/search/templates/search/message_list.html
  2. +3 −1 media/css/input.css
@@ -7,7 +7,7 @@
<span>{{ opinion.type.pretty }}</span>
</h3>
- <p class="body">{{ opinion.description }}</p>
+ <p class="body{% if opinion.locale not in settings.RTL_LANGUAGES %} ltor{% endif %}">{{ opinion.description }}</p>
<ul class="meta">
<li>
@@ -16,7 +16,7 @@
</a>
</li>
<li><a href="{{ search_url(platform=opinion.platform, defaults=defaults) }}">{{ platform_name(opinion.platform) }}{% if opinion.device %} ({{ opinion.device }}){% endif %}</a></li>
- <li><a href="{{ search_url(locale=opinion.locale, defaults=defaults) }}">{{ locale_name(opinion.locale) }}</a></li>
+ <li><a href="{{ search_url(locale=opinion.locale, defaults=defaults) }}">{{ locale_name(opinion.locale) }}{% if opinion.locale not in settings.RTL_LANGUAGES %}&lrm;{% endif %}</a></li>
{% if opinion.url %}
<li><a href="{{ opinion.url }}" rel="nofollow">{{ opinion.url|strip_protocol }}</a></li>
{% endif %}
View
@@ -78,7 +78,9 @@ h2 {
width: 74.47%;
}
-
+.ltor {
+ direction: ltr;
+}
a {
color: #4497c7;
text-decoration: none;

0 comments on commit c7508a2

Please sign in to comment.