<% # 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 . %> <% external_tool ||= nil tool ||= external_tool classes = [] if tool Lti::ResourcePlacement::PLACEMENTS.each do |type| classes << "has_#{type}" if tool.try("has_#{type}") end end %>
<%= 'blank' unless tool %>" id="external_tool_<%= tool ? tool.id : 'blank' %>" data-id="<%= tool && tool.id %>" style="<%= hidden unless tool %>" data-workflow_state="<%= tool.try(:workflow_state) %>">
<%= before_label :privacy, "Privacy" %> <%= tool.try(:readable_state) %>
<%= before_label :consumer_key, "Consumer Key" %> <%= tool.try(:consumer_key) %>
<%= before_label :url, "URL" %> <%= tool.try(:url) %>
<%= before_label :domain, "Domain" %> <%= tool.try(:domain) %>
<%= before_label :description, "Description" %> <%= tool.try(:description) %>
<%= before_label :extras, "Extras" %>
<%= t :editor_button_configured, "Editor button configured" %>
<%= t :resource_selection_configured, "Resource selection configured" %>
<%= t :course_navigation_configured, "Course navigation configured" %>
<%= t :user_navigation_configured, "User navigation configured" %>
<%= t :homework_submission_configured, "Homework submission configured" %>