Move location links generation to template tags

This is presentation logic, does not belong to the model.

Signed-off-by: Michal Čihař <michal@cihar.com>
No need for help here, not shown to user

Signed-off-by: Michal Čihař <michal@cihar.com>
Split up tests

Signed-off-by: Michal Čihař <michal@cihar.com>