Skip to content
Snippets Groups Projects
Commit f05a24c1 authored by jarmil's avatar jarmil
Browse files

Reorganizace strankek MS: detaily lidi pod stranku lide

parent 3a0c1820
No related branches found
No related tags found
2 merge requests!173Release,!134Weby pro MS
......@@ -105,7 +105,6 @@ class DistrictHomePage(MetadataPageMixin, Page):
### RELATIONS
subpage_types = [
"shared.Article",
"shared.PersonPage",
"shared.PeoplePage",
"DistrictArticles",
]
......
......@@ -121,12 +121,14 @@ class PeoplePage(MetadataPageMixin, Page):
settings_panels = []
subpage_types = [
"shared.PersonPage",
]
class Meta:
verbose_name = "Stránka Lidé"
def get_context(self, request):
context = super().get_context(request)
context["people"] = (
self.get_siblings(inclusive=False).type(PersonPage).live().specific()
)
context["people"] = self.get_children().live().specific()
return context
<div class="badge ">
<a href="/{{ person.slug }}" class="avatar badge__avatar avatar--sm">
<a href="{{ person.url }}" class="avatar badge__avatar avatar--sm">
<img src="{{ person.portrait }}" alt="{{ person.name }}" />
</a>
<div class="badge__body">
<h2 class="head-heavy-xs badge__title">
<a href="/{{person.slug}}" title="{{ person.name }}" class="content-block--nostyle">
<a href="{{ person.url }}" title="{{ person.name }}" class="content-block--nostyle">
{{ person.name }}
</a>
</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment