This commit is contained in:
2021-01-15 15:42:30 +00:00
parent b0df14e7ae
commit f6b9e2f741
43 changed files with 793 additions and 628 deletions

View File

@@ -27,7 +27,7 @@ def index(request):
"Index von aktuellen Posts"
posts = deque(Post.objects.get_visible_articles().order_by("-public_date"))
taglist = map(lambda post : post.tags, posts)
taglist = map(lambda post: post.tags, posts)
return render(request, "posts/index.html", {"posts": posts, "tags_list": taglist})
@@ -35,7 +35,7 @@ def index(request):
def calendar(request):
"Kalender Ansicht ICS zur Verknüpfung mit Outlook"
events = deque(Post.objects.all_post_with_date().all())
return render(
request,
"posts/fet_calendar.ics",
@@ -48,7 +48,6 @@ def tags(request, tag=""):
posts = deque(Post.objects.get_visible_articles().filter(tags__name=tag))
featured_post = Post.objects.get_visible_articles().filter(slug=tag).first()
job_members = JobMember.active_member.get_all_by_slug(slug=tag)
author_image = None
@@ -86,25 +85,21 @@ def show(request, id=None):
ep_agenda_link = "#"
ep_protocol_link = "#"
if p.has_agenda:# and p.agenda_key:
if p.has_agenda: # and p.agenda_key:
try:
ep_agenda_link = get_pad_link(p.agenda_key)
except Exception as e:
logger.error(
"Can't get the agenda link from '%s'. Error: %s",
p.agenda_key,
e
"Can't get the agenda link from '%s'. Error: %s", p.agenda_key, e
)
ep_agenda_link = "#"
if p.has_protocol:# and p.protocol_key:
if p.has_protocol: # and p.protocol_key:
try:
ep_protocol_link = get_pad_link(p.protocol_key)
except Exception as e:
logger.error(
"Can't get the protocol link from '%s. Error: %s",
p.protocol_key, e
"Can't get the protocol link from '%s. Error: %s", p.protocol_key, e
)
ep_protocol_link = "#"
@@ -125,8 +120,7 @@ def show(request, id=None):
try:
response = add_ep_cookie(request, response)
except Exception as e:
logger.info(
"Etherpad Server doesn't work. Error: %s", e)
logger.info("Etherpad Server doesn't work. Error: %s", e)
return response