fixed imbalanced tag. preventing status tag being link in choosers, where it's just a distraction

pull/3/head
Dave Cranwell 2014-02-07 11:31:31 +00:00
rodzic d36bedd3d9
commit 6ebd482506
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -74,7 +74,7 @@
</td>
<td class="type">{{ parent_page.content_type.model_class.get_verbose_name }}</td>
<td class="status">
{% if parent_page.live and not parent_page.is_root and 'view_live' not in hide_actions|default:'' %}
{% if not choosing 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>
@ -201,7 +201,7 @@
{% endif %}
<td class="type">{{ page.content_type.model_class.get_verbose_name }}</td>
<td class="status">
{% if page.live and 'view_live' not in hide_actions|default:'' %}
{% if not choosing 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>

Wyświetl plik

@ -21,5 +21,6 @@
<a href="{% url add_link %}" class="button bicolor icon icon-plus">{{ add_text }}</a>
</div>
{% endif %}
</div>
</div>
</header>