Activity stream: Moved building resource link from helper to template and model as discussed in https://github.com/asm-products/buckets/pull/79/files#r21846004.