Commit a77501dc authored by Michal Čihař's avatar Michal Čihař

Move dictionary export directly to menu

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 01ea4957
......@@ -19,7 +19,17 @@
{% if perms.trans.upload_dictionary %}
<li><a href="#import" data-toggle="tab">{% trans "Import glossary" %}</a></li>
{% endif %}
<li><a href="#export" data-toggle="tab">{% trans "Export glossary" %}</a></li>
<li>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
{% trans "Export glossary" %} <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=csv">{% trans "Comma separated values (CSV)" %}</a></li>
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=po">{% trans "Gettext (PO)" %}</a></li>
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=xliff">{% trans "XML Localisation Interchange File Format (XLIFF)" %}</a></li>
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=tbx">{% trans "TermBase eXchange (TBX)" %}</a></li>
</ul>
</li>
<li><a href="#changes" data-toggle="tab">{% trans "History" %}</a></li>
</ul>
......@@ -93,18 +103,6 @@
</div>
{% endif %}
<div class="tab-pane" id="export">
<p>{% trans "You can download glossary in following formats:" %}</p>
<ul>
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=csv">{% trans "Comma separated values (CSV)" %}</a></li>
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=po">{% trans "Gettext (PO)" %}</a></li>
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=xliff">{% trans "XML Localisation Interchange File Format (XLIFF)" %}</a></li>
<li><a href="{% url 'download_dictionary' project=project.slug lang=language.code %}?format=tbx">{% trans "TermBase eXchange (TBX)" %}</a></li>
</ul>
</div>
<div class="tab-pane" id="changes">
{% include "last-changes-content.html" %}
<a class="btn btn-default" href="{% url 'changes' %}?{{ last_changes_url }}">{% trans "Browse all glossary changes" %}</a>
......
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