Commit 47754d1e authored by Michal Čihař's avatar Michal Čihař

Better displaying of suggestions

parent f7fff97e
...@@ -34,13 +34,11 @@ ...@@ -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 @@ ...@@ -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>
......
...@@ -68,4 +68,6 @@ td.translator { ...@@ -68,4 +68,6 @@ td.translator {
td.translator textarea { td.translator textarea {
width: 100% width: 100%
} }
td.suggestions table {
width: 100%
}
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