dfirtrack/dfirtrack

hide giraf related stuff if not used

stuhli opened this issue · 3 comments

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?

n3x77 commented

@stuhli: Thanks for pointing out. I'll take care of this

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.

done with 427ca12