Method: Sufia::SufiaHelperBehavior#linkify_chat_id
- Defined in:
- app/helpers/sufia/sufia_helper_behavior.rb
#linkify_chat_id(chat_id) ⇒ Object
134 135 136 137 138 139 140 |
# File 'app/helpers/sufia/sufia_helper_behavior.rb', line 134 def linkify_chat_id(chat_id) if chat_id.end_with? '@chat.psu.edu' "<a href=\"xmpp:#{chat_id}\">#{chat_id}</a>" else chat_id end end |