Refactoring Html code for Activity. 

Add helper in Activity instead of comparing activitable_type to string all over the code.