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

Merge download/upload tabs to files tab

parent 08a4ea65
...@@ -30,10 +30,7 @@ ...@@ -30,10 +30,7 @@
<div class="tabs" id="translation-tabs"> <div class="tabs" id="translation-tabs">
<ul> <ul>
<li><a href="#search">{% trans "Search" %}</a></li> <li><a href="#search">{% trans "Search" %}</a></li>
<li><a href="#download">{% trans "Download" %}</a></li> <li><a href="#files">{% trans "Files" %}</a></li>
{% if perms.trans.upload_translation %}
<li><a href="#upload">{% trans "Upload" %}</a></li>
{% endif %}
<li><a href="#changes">{% trans "Recent changes" %}</a></li> <li><a href="#changes">{% trans "Recent changes" %}</a></li>
{% if review_form %} {% if review_form %}
<li><a href="#review">{% trans "Review" %}</a></li> <li><a href="#review">{% trans "Review" %}</a></li>
...@@ -54,14 +51,15 @@ ...@@ -54,14 +51,15 @@
</form> </form>
</div> </div>
<div id="download"> <div id="files">
<h3>{% trans "Download" %}</h3>
{% with object.get_download_url as download_url %} {% with object.get_download_url as download_url %}
<p>{% blocktrans %}You can <a href="{{ download_url }}">download</a> file for offline translation.{% endblocktrans %}</p> <p>{% blocktrans %}You can <a href="{{ download_url }}">download</a> file for offline translation.{% endblocktrans %}</p>
{% endwith %} {% endwith %}
</div>
{% if perms.trans.upload_translation %} {% if perms.trans.upload_translation %}
<div id="upload"> <h3>{% trans "Upload" %}</h3>
{% if perms.trans.overwrite_translation %} {% if perms.trans.overwrite_translation %}
<p>{% trans "Uploaded file will be merged with current translation. In case you want to overwrite already translated strings, don't forget to enable it." %}</p> <p>{% trans "Uploaded file will be merged with current translation. In case you want to overwrite already translated strings, don't forget to enable it." %}</p>
{% else %} {% else %}
...@@ -75,8 +73,8 @@ ...@@ -75,8 +73,8 @@
</table> </table>
<p><input type="submit" value="{% trans "Upload" %}" /></p> <p><input type="submit" value="{% trans "Upload" %}" /></p>
</form> </form>
</div>
{% endif %} {% endif %}
</div>
<div id="changes"> <div id="changes">
{% include "last-changes.html" %} {% include "last-changes.html" %}
......
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