Activation view: generate decent code

Removed broken html (unopened anchors, missing opening tbody, missing
closing table), added new lines and code folding.
Merge pull request #46 from flodolo/fix_activation

Activation view: generate decent code