Commit 7929e592 authored by Michal Čihař's avatar Michal Čihař

Show Your translation to all logged in users and add management link

This way users can better start using this feature.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2ec7e81b
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
{% endif %} {% endif %}
<ul class="nav nav-pills"> <ul class="nav nav-pills">
{% if usertranslations %} {% if user.is_authenticated %}
<li class="active"><a href="#your" data-toggle="pill">{% trans "Your translations" %}</a></li> <li class="active"><a href="#your" data-toggle="pill">{% trans "Your translations" %}</a></li>
<li><a href="#projects" data-toggle="pill">{% trans "Projects" %}</a></li> <li><a href="#projects" data-toggle="pill">{% trans "Projects" %}</a></li>
{% else %} {% else %}
...@@ -62,14 +62,20 @@ ...@@ -62,14 +62,20 @@
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
{% if usertranslations %} {% if user.is_authenticated %}
<div class="tab-pane active" id="your"> <div class="tab-pane active" id="your">
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Your translations" %}</h4></div> <div class="panel-heading"><h4 class="panel-title">{% trans "Your translations" %}</h4></div>
<div class="panel-body"> <div class="panel-body">
{% if usertranslations %}
{% with usertranslations as translations and 2 as show_language %} {% with usertranslations as translations and 2 as show_language %}
{% include "list-translations.html" %} {% include "list-translations.html" %}
{% endwith %} {% endwith %}
{% else %}
{% endif %}
</div>
<div class="panel-footer">
<a class="btn btn-default" href="{% url 'profile' %}">{% trans "Manage your translations" %}</a>
</div> </div>
</div> </div>
</div> </div>
......
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