refactored short_links template_tag