acidtech: Show codebox expand/collapse buttons only where necessary

Based on "Show codebox expand/collapse buttons only where necessary in
prosilver" (85363ebb6474cff6de84e152a0aa2f034568cf32).