diff --git a/re2o/settings_local.example.py b/re2o/settings_local.example.py index a70663db..3b0d0a58 100644 --- a/re2o/settings_local.example.py +++ b/re2o/settings_local.example.py @@ -118,6 +118,7 @@ OPTIONNAL_APPS_RE2O = () # Some Django apps you want to add in you local project OPTIONNAL_APPS = OPTIONNAL_APPS_RE2O + () +OPTIONNAL_LINK_RE2O= () # Add statiffiles dir that were installed using system packaging # Example to reproduce re2o2.9 behavior # SYSTEM_STATICFILES_DIRS = ("/usr/share/fonts-font-awesome/", "/usr/share/javascript/") diff --git a/re2o/templatetags/custom_link.py b/re2o/templatetags/custom_link.py new file mode 100644 index 00000000..f9046097 --- /dev/null +++ b/re2o/templatetags/custom_link.py @@ -0,0 +1,18 @@ +from django import template +from re2o.settings_local import OPTIONNAL_LINK_RE2O + +register = template.Library() + +@register.simple_tag +def nav_link_nologin(): + template = """ +