forked from rc/aircox
update dependency
This commit is contained in:
@ -118,6 +118,12 @@ class BasePage(models.Model):
|
||||
def is_trash(self):
|
||||
return self.status == self.STATUS_TRASH
|
||||
|
||||
@property
|
||||
def display_title(self):
|
||||
if self.is_published():
|
||||
return self.title
|
||||
return self.parent.display_title()
|
||||
|
||||
@cached_property
|
||||
def headline(self):
|
||||
if not self.content:
|
||||
|
@ -95,7 +95,7 @@ Usefull context:
|
||||
{% block main %}
|
||||
{% block content %}
|
||||
{% if page and page.content %}
|
||||
<section class="content">{{ page.content|safe }}</section>
|
||||
<section class="page-content">{{ page.content|safe }}</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock main %}
|
||||
|
@ -10,6 +10,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block before_list %}{% endblock %}
|
||||
|
||||
{% block pages_list %}
|
||||
{% if page and page.content %}<hr/>{% endif %}
|
||||
|
Reference in New Issue
Block a user