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

Add more visible download link

It will also allow us to add more formats in future.

Issue #810
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e79e701a
{% load i18n %}
<li><a href="{% url 'download_translation' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" title="{% trans "Download for an offline translation." %}">{% trans "Download source file" %}</a></li>
{% if object.supports_language_pack %}
<li><a href="{% url 'download_language_pack' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" title="{% trans "Download for using within an application." %}">{% trans "Download compiled translation" %}</a></li>
{% endif %}
{% if perms.trans.upload_translation %}
<li role="separator" class="divider"></li>
<li><a href="#upload" data-toggle="tab">{% trans "Upload translation" %}</a></li>
{% endif %}
...@@ -33,13 +33,7 @@ ...@@ -33,13 +33,7 @@
{% trans "Files" %} <span class="caret"></span> {% trans "Files" %} <span class="caret"></span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="{% url 'download_translation' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" title="{% trans "Download for an offline translation." %}">{% trans "Download source file" %}</a></li> {% include "translation-download.html" %}
{% if object.supports_language_pack %}
<li><a href="{% url 'download_language_pack' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" title="{% trans "Download for using within an application." %}">{% trans "Download compiled translation" %}</a></li>
{% endif %}
{% if perms.trans.upload_translation %}
<li><a href="#upload" data-toggle="tab">{% trans "Upload translation" %}</a></li>
{% endif %}
</ul> </ul>
</li> </li>
<li class="dropdown"> <li class="dropdown">
...@@ -137,11 +131,16 @@ ...@@ -137,11 +131,16 @@
<tr> <tr>
<th>{% trans "Translation file" %}</th> <th>{% trans "Translation file" %}</th>
<td> <td>
<div class="dropdown pull-right flip">
<button class="btn btn-default btn-xs dropdown-toggle" type="button" id="dropdownMenuDownload" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-download"></i> {% trans "Download" %}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuDownload">
{% include "translation-download.html" %}
</ul>
</div>
{{ object.filename }} {{ object.filename }}
<a href="{% url 'download_translation' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" title="{% trans "Download for an offline translation." %}"><i class="fa fa-download"></i></a>
{% if object.supports_language_pack %}
<a href="{% url 'download_language_pack' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" title="{% trans "Download for using within an application." %}"><i class="fa fa-cog"></i></a>
{% endif %}
</td> </td>
</tr> </tr>
</table> </table>
......
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