improve texts in changeset panel
This commit is contained in:
parent
cd9b3c0181
commit
2426ff7021
1 changed files with 13 additions and 9 deletions
|
@ -50,25 +50,29 @@
|
||||||
{% elif changeset.state == 'rejected' or changeset.state == 'finallyrejected' %}
|
{% elif changeset.state == 'rejected' or changeset.state == 'finallyrejected' %}
|
||||||
{% with user=changeset.last_state_update.user comment=changeset.last_state_update.comment %}
|
{% with user=changeset.last_state_update.user comment=changeset.last_state_update.comment %}
|
||||||
{% url 'editor.users.detail' pk=changeset.last_state_update.user.pk as user_url %}
|
{% url 'editor.users.detail' pk=changeset.last_state_update.user.pk as user_url %}
|
||||||
<p>{% blocktrans %}Your changes were rejected by <a href="{{ user_url }}">{{ user }}</a>:{% endblocktrans %}</p>
|
{% if changeset.state == 'rejected' %}
|
||||||
|
<p>{% blocktrans %}These changes were rejected by <a href="{{ user_url }}">{{ user }}</a> with the followed comment:{% endblocktrans %}</p>
|
||||||
|
{% else %}
|
||||||
|
<p>{% blocktrans %}These changes were <strong>finally</strong> rejected by <a href="{{ user_url }}">{{ user }}</a> with the followed comment:{% endblocktrans %}</p>
|
||||||
|
{% endif %}
|
||||||
<p>{% blocktrans %}“{{ comment }}”{% endblocktrans %}</p>
|
<p>{% blocktrans %}“{{ comment }}”{% endblocktrans %}</p>
|
||||||
{% if changeset.author == request.user %}
|
{% if changeset.author == request.user and changeset.state == 'rejected' %}
|
||||||
{% if changeset.state == 'rejected' %}
|
<p>{% blocktrans %}You can now edit your changes and propose them again.{% endblocktrans %}</p>
|
||||||
<p>{% blocktrans %}You can now edit your changes and propose them again.{% endblocktrans %}</p>
|
|
||||||
{% else %}
|
|
||||||
<p>{% blocktrans %}This rejection is final.{% endblocktrans %}</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% elif changeset.state == 'applied' %}
|
{% elif changeset.state == 'applied' %}
|
||||||
{% with user=changeset.last_state_update.user %}
|
{% with user=changeset.last_state_update.user %}
|
||||||
{% url 'editor.users.detail' pk=changeset.last_state_update.user.pk as user_url %}
|
{% url 'editor.users.detail' pk=changeset.last_state_update.user.pk as user_url %}
|
||||||
<p>{% blocktrans %}Your changes were applied by <a href="{{ user_url }}">{{ user }}</a>.{% endblocktrans %}</p>
|
<p>{% blocktrans %}These changes were applied by <a href="{{ user_url }}">{{ user }}</a>.{% endblocktrans %}</p>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if changeset.author == request.user and active %}
|
{% if changeset.author == request.user and active %}
|
||||||
{% url 'editor.users.detail' pk=request.user.pk as user_url %}
|
{% url 'editor.users.detail' pk=request.user.pk as user_url %}
|
||||||
<p>{% blocktrans %}In the meantime, if you want to create a new change set, you can do so <a href="{{ user_url }}">in your profile</a>.{% endblocktrans %}</p>
|
{% if not changeset.closed %}
|
||||||
|
<p>{% blocktrans %}In the meantime, if you want to create a new change set, you can do so <a href="{{ user_url }}">in your profile</a>.{% endblocktrans %}</p>
|
||||||
|
{% else %}
|
||||||
|
<p>{% blocktrans %}If you want to create a new change set, you can do so <a href="{{ user_url }}">in your profile</a>.{% endblocktrans %}</p>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="text-muted">{{ changeset.last_state_update.datetime|date:"DATETIME_FORMAT" }}</span>
|
<span class="text-muted">{{ changeset.last_state_update.datetime|date:"DATETIME_FORMAT" }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue