Better displaying of suggestions

This commit is contained in:
Michal Čihař 2012-03-01 16:28:17 +01:00
parent f7fff97e26
commit 47754d1e74
2 changed files with 11 additions and 8 deletions

View File

@ -34,13 +34,11 @@
<br />
{{ form.fuzzy }}<label for="id_fuzzy">{% trans "Fuzzy" %}</label>
</td></tr>
<tr><th>{% trans "Location" %}</th>
<th>{% trans "Suggestions" %}</th>
</tr>
<tr><td>{{ unit.get_location_links }}</td>
<td colspan="3">
{% with unit.suggestions as suggestions %}
{% if suggestions %}
<tr>
<th>{% trans "Suggestions" %}</th>
<td class="suggestions">
<table>
{% for suggestion in suggestions %}
<tr><td class="translatetext">{{ suggestion.target|fmttranslation }}</td></tr>
@ -53,10 +51,13 @@
</td>
{% endfor %}
</table>
{% else %}
{% trans "There are no suggestions for this string." %}
</td>
</tr>
{% endif %}
{% endwith %}
<tr>
<th>{% trans "Used in" %}</th>
<td>{{ unit.get_location_links }}</td>
</td>
</tr>
<tr><th>{% trans "Flags" %}</th></tr>

View File

@ -68,4 +68,6 @@ td.translator {
td.translator textarea {
width: 100%
}
td.suggestions table {
width: 100%
}