Commit 06d1ef74 authored by Michal Čihař's avatar Michal Čihař

Show status flag in search results

parent 033ac222
......@@ -129,7 +129,7 @@ def search(request):
search_form.cleaned_data['ctx'],
search_form.cleaned_data['tgt'],
).select_related(
'translation'
'translation',
)
limit = request.GET.get('limit', 50)
......
......@@ -23,7 +23,10 @@
<table>
<tbody>
{% for unit in units.object_list %}
<tr><th colspan="2"><a href="{{ unit.translation.get_absolute_url }}">{{ unit.translation }}</a></th></tr>
<tr><th colspan="2">
<a href="{{ unit.translation.get_absolute_url }}">{{ unit.translation }}</a>
{{ unit.get_state_flags }}
</th></tr>
<tr>
<th class="source">{% trans "Source" %}</th>
<td class="translatetext"><a href="{{ unit.get_absolute_url }}">{{ unit.source|fmtsearchmatch:search_query }}</a></td>
......
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