<% # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <% provide :page_title, t('titles.registered_services', 'Registered Services') %> <% add_crumb(t('#crumbs.people', 'People'), context_url(@context, :context_users_url)) set_active_tab "people" add_crumb(t('#crumbs.registered_services', 'Registered Services'), context_url(@context, :context_user_services_url)) %> <% provide :right_side do %>
<%= t('links.back_to_roster', %{Back to Roster}) %>

<%= t('headings.service_types', %{Service Types}) %>

<% end %>

<%= t('headings.registered_services', %{Registered Services}) %>

<%= t 'help.user_services', %{If other members choose, they can let you see which outside services they've linked to their Canvas account. This can make it easier to coordinate group projects and also link up outside of class.} %>

<% if @current_user && @current_user.user_services.select{|s| feature_and_service_enabled?(s.service)}.empty? %>

<%= t 'help.no_services', %{You haven't linked your user profile to any external services. You can link your Canvas account to services like Twitter.} %>

<%= t('links.link_service', %{Link web services to my account}) %>

<% elsif @current_user && !@current_user.show_user_services %>

<%= t 'help.services_private', %{You haven't enabled your list of registered services. Enabling this list will let fellow course and group members see which services you have linked to your Canvas account.} %>

<% end %> <% @services_hash.sort_by{|t, s| UserService.sort_position(t) }.each do |service_type, services| %> <% service_example = services.first %>

<%= image_tag "#{service_type}_icon.png", :alt => "" %><%= service_type.titleize %>

<%= UserService.short_description(service_type) %>
<% end %> <% js_bundle 'legacy/context_roster_user_services' %>