hide giraf related stuff if not used
stuhli opened this issue · 3 comments
stuhli commented
All GIRAF API related buttons should not be shown if the API is not in use. Maybe this could be realized by an django app? Or it is possible by templatetags
?
stuhli commented
I already would have done this, but apparently templatetags
are not evaluated with Jinja2?
My plan was to have something like GIRAF_BOOL
in dfirtrack_main.templatetags.dfirtrack_main_tags
. But for incomprehensible reasons {% if GIRAF_BOOL %}
(e. g. in systems_list.html
) does not work like I expected it to do.