mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
capfirst is redundant in status-tag
(it's uppercased in CSS, and the other occurrences of status-tag don't do it)
This commit is contained in:
parent
cd3552ef06
commit
2caf88a45c
@ -28,9 +28,9 @@
|
||||
<td class="type" valign="bottom">{{ parent_page.content_type.model_class.get_verbose_name }}</td>
|
||||
<td class="status" valign="bottom">
|
||||
{% 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>
|
||||
<a href="{{ parent_page.url }}" target="_blank" class="status-tag {% if parent_page.status_string != "draft" %}primary{% endif %}">{{ parent_page.status_string }}</a>
|
||||
{% else %}
|
||||
<span class="status-tag {% if parent_page.status_string != "draft" %}primary{% endif %}">{{ parent_page.status_string|capfirst }}</span>
|
||||
<span class="status-tag {% if parent_page.status_string != "draft" %}primary{% endif %}">{{ parent_page.status_string }}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td></td>
|
||||
|
Loading…
Reference in New Issue
Block a user