There were 2 copies of the code for activity log: the one used
on main screens and the other user in the report. Latter code is
located in jinja macros. Now it is used in main screens too.
Closes bug: 1262192
Change-Id: I7bd3f4efe083c835efcf55bc8054cda1ab818da9