Commit 073c675f authored by Luca De Petrillo's avatar Luca De Petrillo

Highlighted current translation inside the "nearby translation" section.

parent f3eb849a
......@@ -177,8 +177,13 @@
{% for item in unit.nearby %}
<tr>
<td class="number"><a href="{{ item.get_absolute_url }}">{{ item.position }}</a></td>
{% if unit.position == item.position %}
<td class="translatetext current_translation"><a href="{{ item.get_absolute_url }}">{{ item.source|fmttranslation }}</a></td>
<td class="translatetext current_translation"><a href="{{ item.get_absolute_url }}">{{ item.target|fmttranslation:unit.translation.language }}</a></td>
{% else %}
<td class="translatetext"><a href="{{ item.get_absolute_url }}">{{ item.source|fmttranslation }}</a></td>
<td class="translatetext"><a href="{{ item.get_absolute_url }}">{{ item.target|fmttranslation:unit.translation.language }}</a></td>
{% endif %}
<td>{% include "unit-state.html" %}</td>
</tr>
{% endfor %}
......
......@@ -54,6 +54,9 @@ ul.breadcrumbs li {
.translatetext {
background-color: #eee;
}
.current_translation {
background-color: #ddd;
}
.hlspace {
border-bottom: 1px dotted red;
color: gray;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment