adding privacy setter into page listing. previously omitted by error. Also fixing breadcrumbs within page chooser, broken for a while.

This commit is contained in:
Dave Cranwell 2014-06-12 14:40:34 +01:00 committed by Matt Westcott
parent 00942c9de7
commit dffd441375
2 changed files with 21 additions and 6 deletions

View file

@ -343,7 +343,6 @@ ul.listing{
background:$color-teal-darker;
}
}
}
}
ul.listing{
@ -357,6 +356,8 @@ table.listing{
/* explorer specific tweaks */
.page-explorer .listing {
position:relative;
.index{
color:white;
background-color:$color-header-bg;
@ -366,6 +367,13 @@ table.listing{
padding-bottom:1.5em;
}
.privacy-indicator{
opacity:1;
position:absolute;
right:5%;
top:2em;
}
.title{
h2{
color:white;
@ -375,10 +383,21 @@ table.listing{
a:hover{
color:white;
}
.privacy-indicator{
position:relative;
right:auto;
top:auto;
opacity:0.7;
}
}
}
}
.privacy-indicator{
font-size:0.9em;
opacity:0.7;

View file

@ -63,13 +63,9 @@
{% else %}
{{ parent_page.title }}
{% endif %}
{% test_page_is_public parent_page as is_public %}
{% if not is_public %}
<span class="privacy-indicator icon icon-locked" title="This page is protected from public view"></span>
{% endif %}
</h2>
{% include "wagtailadmin/pages/_privacy_indicator.html" with page=parent_page %}
<ul class="actions">
{% if parent_page_perms.can_edit and 'edit' not in hide_actions|default:'' %}