Skip to content

Commit

Permalink
adding lti settings route (MarkUsProject#6903)
Browse files Browse the repository at this point in the history
* adding lti settings route

* normalized I18n

---------

Co-authored-by: Donny Wong <donnywong@cs.toronto.edu>
  • Loading branch information
donny-wong and Donny Wong committed Jan 12, 2024
1 parent 192136f commit cf61747
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/assignments/_create_lti_line_items.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<% @lti_deployments.each do |deployment| %>
<tr>
<td>
<%= f.label deployment.id, I18n.t("lti.lti_deployment", {
<%= f.label deployment.id, I18n.t("lti.lti_deployment",
lti_deployment_name: deployment.lms_course_name,
lti_host: URI(deployment.lti_client.host).host,
}) %>
) %>
</td>
<td>
<% if deployment.lti_line_items.where(assessment: @assignment).exists? %>
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
get 'grade_distribution'
get 'download_config_files'
get 'download_test_results'
get 'lti_settings'
post 'create_lti_grades'
post 'create_lti_line_items'
end
Expand Down

0 comments on commit cf61747

Please sign in to comment.