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

View File

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