Skip to content

eol-uchile/eol_img_annotation

Repository files navigation

Imagen Annotation XBlock

Coverage Status

https://github.com/eol-uchile/eol_img_annotation/actions

Install

docker-compose exec cms pip install -e /openedx/requirements/eol_img_annotation
docker-compose exec lms pip install -e /openedx/requirements/eol_img_annotation
docker-compose exec lms python manage.py lms --settings=prod.production makemigrations
docker-compose exec lms python manage.py lms --settings=prod.production migrate

TESTS

Prepare tests:

Run tests:

  • In a terminal at the root of the project
    act -W .github/workflows/pythonapp.yml
    

Notes

Add the following code here ../themes/your_theme/cms/templates/container.html

<% have_img_annotation = False %>
%for child in xblock.children:
    %if child.block_type == 'img_annotation':
        <% have_img_annotation = True %>
    % endif
% endfor
% if have_img_annotation:
    <script id='openseadragon-scripts' type="text/javascript" src="${static.url('js/src/openseadragon.5.0.1.min.js')}"></script>
    <script type="text/javascript" src="${static.url('js/src/openseadragon-annotorious.min.js')}"></script>
    <script type="text/javascript" src="${static.url('js/src/annotorious-toolbar.min.js')}"></script>
% endif

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5