add protocoll link if available

This commit is contained in:
2020-09-08 11:35:18 +00:00
parent 7fe65d5bca
commit bc65cfdcbc
2 changed files with 13 additions and 7 deletions

View File

@@ -70,12 +70,14 @@ def show(request, id=None):
if post_author:
author_image = post_author.image['avatar'].url
ep_link = (get_pad_link(p.agenda_key), get_pad_link(p.protocol_key))
context = {
"post": p,
"author_image": author_image,
"next": get_next_dict(p),
"related_posts": p.tags.similar_objects(),
"ep_link": get_pad_link(p.agenda_key),
"ep_link": ep_link,
}
response = render(request, 'posts/show.html', context)