Sha256: ed19dba395fe52500e2adfe910663d77cfd2f3319c0d874d29dbcbc3d6e9dac5
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
module Tramway::Profiles::LinksHelper def profile_link(profile) send profile.network_name, profile.uid, profile.title end private def vk(uid, title) profile_link_template title, "https://vk.com/#{uid}", :vk end def facebook(uid, title) profile_link_template title, "https://facebook.com/#{uid}", :facebook end def twitter(uid, title) profile_link_template title, "https://twitter.com/#{uid}", :twitter end def instagram(uid, title) profile_link_template title, "https://instagram.com/#{uid}", :instagram end def profile_link_template(title, link, icon) link_to link, target: '_blank' do concat fa_icon icon concat ' ' concat title end end end
Version data entries
3 entries across 3 versions & 1 rubygems