diff options
Diffstat (limited to 'app/helpers/active_sessions_helper.rb')
-rw-r--r-- | app/helpers/active_sessions_helper.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/app/helpers/active_sessions_helper.rb b/app/helpers/active_sessions_helper.rb deleted file mode 100644 index 97b6dac67c5..00000000000 --- a/app/helpers/active_sessions_helper.rb +++ /dev/null @@ -1,23 +0,0 @@ -module ActiveSessionsHelper - # Maps a device type as defined in `ActiveSession` to an svg icon name and - # outputs the icon html. - # - # see `DeviceDetector::Device::DEVICE_NAMES` about the available device types - def active_session_device_type_icon(active_session) - icon_name = - case active_session.device_type - when 'smartphone', 'feature phone', 'phablet' - 'mobile' - when 'tablet' - 'tablet' - when 'tv', 'smart display', 'camera', 'portable media player', 'console' - 'media' - when 'car browser' - 'car' - else - 'monitor-o' - end - - sprite_icon(icon_name, size: 16, css_class: 'prepend-top-2') - end -end |