Merge pull request #840 from emanuelschuetze/motion-version-warnings

Show each motion detail version warning in one line
This commit is contained in:
Oskar Hahn 2013-07-29 01:54:12 -07:00
commit 764113e024

View File

@ -69,18 +69,18 @@
{# TODO: show only for workflow with versioning #} {# TODO: show only for workflow with versioning #}
{% with last_version=motion.get_last_version active_version=motion.get_active_version %} {% with last_version=motion.get_last_version active_version=motion.get_active_version %}
{% if version.version_number != last_version.version_number %} {% if version.version_number != last_version.version_number %}
<span class="label label-warning"> <p><span class="label label-warning">
<i class="icon-warning-sign icon-white"></i> {% trans "This is not the newest version." %} <i class="icon-warning-sign icon-white"></i> {% trans "This is not the newest version." %}
</span> </span>
<a href="{% model_url last_version %}" class="btn btn-small">{% trans "Go to the newest version" %} <a href="{% model_url last_version %}" class="btn btn-small">{% trans "Go to the newest version" %}
(# {{ last_version.version_number }})</a> (# {{ last_version.version_number }})</a></p>
{% endif %} {% endif %}
{% if version.version_number != active_version.version_number %} {% if version.version_number != active_version.version_number %}
<span class="label label-warning"> <p><span class="label label-warning">
<i class="icon-warning-sign icon-white"></i> {% trans "This version is not authorized." %} <i class="icon-warning-sign icon-white"></i> {% trans "This version is not authorized." %}
</span> </span>
<a href="{% model_url active_version %}" class="btn btn-small">{% trans "Go to the authorized version" %} <a href="{% model_url active_version %}" class="btn btn-small">{% trans "Go to the authorized version" %}
(# {{ active_version.version_number }})</a> (# {{ active_version.version_number }})</a></p>
{% endif %} {% endif %}
{% endwith %} {% endwith %}