Replace old history related template with tgHistory directive

Removing a lot of verbose and repeated html blocks that can be
easy build by tgHistory directive.