Merge pull request #869 from emanuelschuetze/1.4.2-fixes

Fixes for motion version and identifier
This commit is contained in:
Oskar Hahn 2013-09-07 05:41:43 -07:00
commit a7a2547e9e
4 changed files with 8 additions and 22 deletions

View File

@ -16,11 +16,7 @@
{% for motion in submitted_motions %}
<li>
<a href="{% model_url motion %}">
{% if motion.identifier %}
[# {{ motion.identifier }}]
{% else %}
[---]
{% endif %}
{{ motion.identifier|add:' | '|default:'' }}
{{ motion }}
</a>
</li>

View File

@ -16,14 +16,10 @@
<h1>
{{ title }}
<br>
<small>
{% if motion.identifier %}
{% trans "Motion" %} {{ motion.identifier|default:'' }},
{% else %}
<i>[{% trans "no number" %}]</i>,
<small>{% trans "Motion" %} {{ motion.identifier|default:'' }}
{% if motion.versions.count > 1 %}
| {% trans "Version" %} {{ version.version_number }}
{% endif %}
{# TODO: show only for workflow with versioning #}
{% trans "Version" %} {{ version.version_number }}
</small>
<small class="pull-right">
<a href="{% url 'motion_list' %}" class="btn btn-mini"
@ -242,15 +238,13 @@
<!-- Creation Time -->
<h5>
{% with versions=motion.versions.all %}
{% if versions|length > 1 %}
{% if motion.versions.count > 1 %}
{% trans "Last changes (of this version)" %}:
{% else %}
{% trans "Last changes" %}:
{% endif %}
{% endwith %}
</h5>
{{ motion.use_version.creation_time }}
{{ version.creation_time }}
<!-- Widthdraw button -->
{# TODO: Check this button #}

View File

@ -70,7 +70,7 @@
</td>
{% endwith %}
{% endif %}
<td class="optional">{{ motion.last_version.creation_time }}</td>
<td class="optional">{{ motion.get_last_version.creation_time }}</td>
<td>
<span style="width: 1px; white-space: nowrap;">
{% if perms.projector.can_manage_projector %}

View File

@ -14,11 +14,7 @@
<i class="icon-search"></i>
</a>
<a href="{% model_url motion %}">
{% if motion.identifier %}
[# {{ motion.identifier }}]
{% else %}
[---]
{% endif %}
{{ motion.identifier|add:' | '|default:'' }}
{{ motion }}
</a>
</li>