Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
% if has_score and weight:
    <div class="problem-progress">
        % if module_score is not None:
            (${"{points} / {total_points} points".format(points=module_score, total_points=weight)})
        % else:
            (${"{total_points} points possible".format(total_points=weight)})
        % endif
    </div>
% endif


<div
    id="${element_id}"
    class="${element_class} lti-consumer-container"
    data-ask-to-send-username="${ask_to_send_username}"
    data-ask-to-send-email="${ask_to_send_email}"
>

% if launch_url and not hide_launch:
    % if launch_target in ['modal', 'new_window']:
        <section class="wrapper-lti-link">
            % if description:
                <div class="lti-description">${description}</div>
            % endif
            <p class="lti-link external">
                % if launch_target == 'modal':
                    <button
                        class="btn btn-pl-primary btn-base btn-lti-modal"
                        data-target="#${element_id + '-lti-modal'}"
                    >
                        ${button_text or 'View resource in a modal window'} <i class="icon fa fa-external-link"></i>
                    </button>
                % else:
                    <button
                        class="btn btn-pl-primary btn-base btn-lti-new-window"
                        data-target="${form_url}"
                    >
                        ${button_text or 'View resource in a new window'} <i class="icon fa fa-external-link"></i>
                    </button>
                % endif
            </p>
        </section>
    % endif
    % if launch_target == 'modal':
        <section
            id="${element_id}-lti-modal"
            class="modal lti-modal"
            aria-hidden="true"
            style="width:${modal_width}px; height:${modal_height}px;"
            data-launch-url="${form_url}"
        >
            <div class="inner-wrapper" role="dialog">
                <button class="close-modal">
                    <i class="icon fa fa-remove"></i>
                    <span class="sr">Close</span>
                </button>
                ## The result of the LTI launch form submit will be rendered here.
                ## initial_launch_url is set to an empty string here because
                ## in "modal" launch mode, we use javascript to set the src
                ## attribute of the iframe when the modal window is opened.
                <%include file="templates/html/lti_iframe.html" args="initial_launch_url=''"/>
            </div>
        </section>
    % endif
    % if launch_target == 'iframe':
        <div data-automatic-resizing="${automatic_resizing}"
             data-inline-ratio="${inline_ratio}"
             data-inline-height="${inline_height}">

        ## The result of the LTI launch form submit will be rendered here.
        <%include file="templates/html/lti_iframe.html" args="initial_launch_url=form_url"/>
        </div>
    % endif
% elif not hide_launch:
    <h3 class="error_message">
        Please provide launch_url. Click "Edit", and fill in the required fields.
    </h3>
% endif

% if has_score and comment:
    <h4 class="problem-feedback-label">Feedback on your work from the grader:</h4>
    <div class="problem-feedback">
        ## sanitized with bleach in view
        ${comment}
    </div>
% endif

</div>