Skip to content

Commit

Permalink
publish state icon in page_tree two icons (django-cms#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
maiklust committed Jun 20, 2009
1 parent 8fc7f8e commit 6dae493
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cms/templates/admin/cms/page/menu_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,11 @@
{% if page.published %}<input type="checkbox" class="publish-checkbox" name="status-{{ page.id }}" checked="checked" value="1" title="{% trans 'Unpublish' %}"/>
{% else %}<input type="checkbox" class="publish-checkbox" name="status-{{ page.id }}" value="0" title="{% trans 'Publish' %}"/>
{% endif %}
{% else %}{{ page.published|boolean_icon }}
{% endif %}
{% if page.is_public_published %}<label>
<img alt="True" src="{% admin_media_prefix %}img/admin/icon-yes.gif"/>

<label>
{{ page.is_public_published|boolean_icon }}
</label>
{% else %}<label>
<img alt="False" src="{% admin_media_prefix %}img/admin/icon-no.gif" />
</label>{% endif %}
<a href="{% ifnotequal cl.current_site site %}http://{{ cl.current_site.domain }}{% endifnotequal %}/{% page_admin_language page %}{{ page.get_absolute_url }}?preview" title="{% trans "View on page" %}" class="icon selector-add viewpage" id="view-page-{{page.id}}"><span>{% trans "view" %}</span></a>
</div>

Expand Down

0 comments on commit 6dae493

Please sign in to comment.