status tags shouldn't be linked when choosing OR moving

pull/137/head
Dave Cranwell 2014-03-04 16:54:12 +00:00
rodzic 9c14d41e9b
commit 5c26ef2709
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -75,7 +75,7 @@
</td>
<td class="type">{{ parent_page.content_type.model_class.get_verbose_name }}</td>
<td class="status">
{% if not choosing and parent_page.live and not parent_page.is_root and 'view_live' not in hide_actions|default:'' %}
{% if not choosing and not moving and parent_page.live and not parent_page.is_root and 'view_live' not in hide_actions|default:'' %}
<a href="{{ parent_page.url }}" target="_blank" class="status-tag {% if parent_page.status_string != "draft" %}primary{% endif %}">{{ parent_page.status_string|capfirst }}</a>
{% else %}
<span class="status-tag {% if parent_page.status_string != "draft" %}primary{% endif %}">{{ parent_page.status_string|capfirst }}</span>
@ -208,7 +208,7 @@
{% endif %}
<td class="type">{{ page.content_type.model_class.get_verbose_name }}</td>
<td class="status">
{% if not choosing and page.live and 'view_live' not in hide_actions|default:'' %}
{% if not choosing and not moving and page.live and 'view_live' not in hide_actions|default:'' %}
<a href="{{ page.url }}" target="_blank" class="status-tag {% if page.status_string != "draft" %}primary{% endif %}">{{ page.status_string }}</a>
{% else %}
<span class="status-tag {% if page.status_string != "draft" %}primary{% endif %}">{{ page.status_string }}</span>