Skip to content

Commit

Permalink
Remove template tag room_link
Browse files Browse the repository at this point in the history
Remove the now unused tag room_link and the function get_room_link which
is only used by this tag.
  • Loading branch information
donald committed Aug 13, 2020
1 parent 75469a6 commit d0e154b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions mpicms/base/templatetags/base_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe

from mpicms.base.utils import get_room_link


register = template.Library()


Expand All @@ -21,11 +18,6 @@ def is_subscribed(page, user):
return user in page.subscribers.all()


@register.simple_tag
def room_link(room):
return get_room_link(room)


@register.filter
def remove_i18n(url):
if url.startswith('/en') or url.startswith('/de'):
Expand Down
5 changes: 0 additions & 5 deletions mpicms/base/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ def can_create(request, model):
if request.user.is_staff or request.user.is_superuser:
return True
return not getattr(model, 'creation_limited', False)


def get_room_link(room):
if room:
return 'https://twiki.molgen.mpg.de/foswiki/bin/room/' + room.split()[0]

0 comments on commit d0e154b

Please sign in to comment.