This repository has been archived by the owner on Nov 12, 2022. It is now read-only.
forked from carpentries/amy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[carpentries#2063] Conditionally show event's recruitment info
Show only if we enabled the feature flag.
- Loading branch information
1 parent
6e3a65b
commit dcc58bd
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django import template | ||
from django.conf import settings | ||
|
||
register = template.Library() | ||
|
||
|
||
@register.simple_tag | ||
def is_instructor_recruitment_enabled(): | ||
try: | ||
return bool(settings.INSTRUCTOR_RECRUITMENT_ENABLED) | ||
except AttributeError: | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters