Commit 0dd38523 authored by Michal Čihař's avatar Michal Čihař

Add management link to glossary page

Fixes #354
parent cacef92b
......@@ -143,6 +143,7 @@ def get_dictionary(request, unit_id):
return render_to_response('js/dictionary.html', RequestContext(request, {
'dictionary': dictionary,
'translation': unit.translation,
}))
......
......@@ -27,3 +27,4 @@
<p>{% trans "No related strings found in dictionary." %}</p>
{% endif %}
<p><a href="{% url 'show_dictionary' project=translation.subproject.project.slug lang=translation.language.code %}" class="button">{% trans "Manage glossary" %}</a></p>
......@@ -298,6 +298,7 @@ $(function () {
load: function (e, ui) {
$(ui.panel).find(".tab-loading").remove();
$('a.mergebutton').button({text: true, icons: { primary: "ui-icon-check" }});
$('.button').button();
$('a.copydict').button({text: true, icons: { primary: "ui-icon-copy" }}).click(function () {
var text = $(this).parent().parent().find('.target').text();
$('#id_target').insertAtCaret(text);
......
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