Commit 78a36796 authored by Michal Čihař's avatar Michal Čihař

Make nearby translations clickable

parent d3ab1c32
...@@ -162,9 +162,9 @@ ...@@ -162,9 +162,9 @@
</thead> </thead>
<tbody> <tbody>
{% for item in unit.nearby %} {% for item in unit.nearby %}
<tr> <tr class="clickable">
<td class="translatetext">{{ item.source|fmttranslation }}</td> <td class="translatetext"><a href="{{ item.get_absolute_url }}">{{ item.source|fmttranslation }}</a></td>
<td class="translatetext">{{ item.target|fmttranslation:unit.translation.language }}</td> <td class="translatetext"><a href="{{ item.get_absolute_url }}">{{ item.target|fmttranslation:unit.translation.language }}</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
......
...@@ -120,3 +120,9 @@ span.sort { ...@@ -120,3 +120,9 @@ span.sort {
th.sort { th.sort {
cursor: pointer; cursor: pointer;
} }
tr.clickable a {
text-decoration: none;
}
tr.clickable {
cursor: pointer;
}
...@@ -174,5 +174,8 @@ $(function() { ...@@ -174,5 +174,8 @@ $(function() {
} }
} }
}); });
$('tr.clickable').click(function() {
window.location = $(this).find('a')[0].href;
});
}); });
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