education/classroom

View on GitHub
app/views/orgs/lti_configurations/info.html.erb

Summary

Maintainability
Test Coverage
<% lms_name = @lti_configuration.lms_name(default_name: "your learning management system") %>

<div class="remodal-bg">
  <%= render 'organizations/organization_banner', settings: true %>

  <div class="site-content">
    <div class="site-content-cap">
      <h2 class="site-content-heading">Connect GitHub Classroom to <%= lms_name %></h2>
    </div>
    <div class="site-content-body markdown-body">
      <p>Connecting GitHub Classroom to <%= lms_name %> will allow you to manage your students and submissions easier!</p>
      <h3>What integrating GitHub Classroom with <%= lms_name %> can do for you</h3>
      <ul>
        <li>Sync rosters from <%= lms_name %> to GitHub Classroom</li>
      </ul>

      <h3>How to link GitHub Classroom with <%= lms_name %></h3>
      <p>You or your system administrator will need to add a new application to
      your <%= lms_name %> with the following credentials generated by
      GitHub Classroom.</p>
      <ul>
        <li>Consumer key</li>
        <li>Shared secret</li>
      </ul>
      <div class="d-flex flex-items-center border-top pt-5">
        <%= button_to "Connect to #{lms_name}",
            lti_configuration_path(current_organization, lti_configuration: { lms_type: @lti_configuration.lms_type }),
            class: 'btn btn-primary mr-3'
        %>
        <%= link_to 'Go back', :back, class: 'btn-link' %>
      </div>
    </div>
  </div>


</div>