diff --git a/app/views/external_tools/_external_tool.html.erb b/app/views/external_tools/_external_tool.html.erb index 71a29540f66..3c0035fe455 100644 --- a/app/views/external_tools/_external_tool.html.erb +++ b/app/views/external_tools/_external_tool.html.erb @@ -3,31 +3,31 @@
<%= tool.try(:name) %>
- + - + - + - + - +
Privacy:<%= before_label :privacy, "Privacy" %> <%= tool.try(:readable_state) %>
Consumer Key:<%= before_label :consumer_key, "Consumer Key" %> <%= tool.try(:consumer_key) %>
URL:<%= before_label :url, "URL" %> <%= tool.try(:url) %>
Domain:<%= before_label :domain, "Domain" %> <%= tool.try(:domain) %>
Description:<%= before_label :description, "Description" %> <%= tool.try(:description) %>
- \ No newline at end of file + diff --git a/app/views/external_tools/_external_tools.html.erb b/app/views/external_tools/_external_tools.html.erb index 21d72c102b1..264a86e36a9 100644 --- a/app/views/external_tools/_external_tools.html.erb +++ b/app/views/external_tools/_external_tools.html.erb @@ -1,9 +1,5 @@
-

External tools are tools outside of Canvas that support - Basic LTI integrations. You will need to check with the author - of the tool for the correct configuration parameters to add. - Tools are configured at the account level, and can then be - added as content in course modules for courses in the account. +

<%= t :external_tools_note, "External tools are tools outside of Canvas that support Basic LTI integrations. You will need to check with the author of the tool for the correct configuration parameters to add. Tools are configured at the account level, and can then be added as content in course modules for courses in the account." %>

<% @context.context_external_tools.active.each do |tool| %> <%= render :partial => 'external_tools/external_tool', :object => tool %> @@ -14,44 +10,44 @@ <% form_for :external_tool, :url => '.', :html => {:id => 'external_tool_form'} do |f| %> - + - + - + - + - + - + - - + + @@ -60,5 +56,5 @@
- +
diff --git a/app/views/external_tools/finished.html.erb b/app/views/external_tools/finished.html.erb index 337a4cf281b..441d2997da1 100644 --- a/app/views/external_tools/finished.html.erb +++ b/app/views/external_tools/finished.html.erb @@ -1,16 +1,15 @@
<% if params[:lti_errormsg] %> -

Tool Failed to Load

- There was a problem loading the specified tool. Please contact your - administrator if these problems persist. +

<%= t :load_failure_title, "Tool Failed to Load" %>

+ <%= t :load_failure_message, "There was a problem loading the specified tool. Please contact your administrator if these problems persist." %>
<%= params[:lti_errormsg] %>
<% else %> -

Tool Use Finished

- You are free to navigate away from this page. +

<%= t :load_success_title, "Tool Use Finished" %>

+ <%= t :load_success_message, "You are free to navigate away from this page." %>
<%= params[:lti_msg] %>
<% end %> -
\ No newline at end of file + diff --git a/app/views/external_tools/tool_show.html.erb b/app/views/external_tools/tool_show.html.erb index dba6de72658..4e8023eb7b2 100644 --- a/app/views/external_tools/tool_show.html.erb +++ b/app/views/external_tools/tool_show.html.erb @@ -8,7 +8,7 @@ <% settings.each do |key, value| %> <%= hidden_field_tag key, value %> <% end %> - + <%= iframe("about:blank", :name => 'tool_content', :id => 'tool_content', :width => '100%', :height => '400') %>
<%= f.label :name, "Name:" %><%= f.blabel :name, :en => "Name" %> <%= f.text_field :name %>
<%= f.label :consumer_key, "Consumer Key:" %><%= f.blabel :consumer_key, :en => "Consumer Key" %> <%= f.text_field :consumer_key %>
<%= f.label :shared_secret, "Shared Secret:" %><%= f.blabel :shared_secret, :en => "Shared Secret" %> <%= f.text_field :shared_secret %> -
enter a new value to change
+
<%= t :shared_secret_note, "enter a new value to change" %>
<%= f.label :url, "URL:" %><%= f.blabel :url, :en => "URL" %> <%= f.text_field :url %>
<%= f.label :domain, "Domain:" %><%= f.blabel :domain, :en => "Domain" %> <%= f.text_field :domain %>
<%= f.label :privacy_level, "Privacy:" %><%= f.select :privacy_level, [['Anonymous','anonymous'],['Name Only','name_only'],['Public','public']] %><%= f.blabel :privacy_level, :en => "Privacy" %><%= f.select :privacy_level, [[t(:anonymous, "Anonymous"),'anonymous'],[t(:name_only, "Name Only"),'name_only'],[t(:public, "Public"),'public']] %>
- <%= f.label :description, "Description:" %>
+ <%= f.blabel :description, :en => "Description" %>
<%= f.text_area :description, :style => "width: 550px; height: 100px;" %>
- - + +