A view helper method would do the trick. Make one that returns the bit that stays the same (the link_to, strong, comma, and server address), then call it where you have those things.
Or you could use a decorator that contains the logic of looking at i.
-Dave