[% template after 2 %]
[# Include only if the upload feature is enabled and no document is currently being viewed #]
[% if $context?features?upload?enabled and empty($context?doc) %]
[% if $context?features?upload?target %]
[% else %]
[% endif %]
[% endif %]
[% endtemplate %]
[% template styles %]
[% endtemplate %]