modules.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. layout: guide
  3. title: Module documentation
  4. permalink: /guides/modules/
  5. ---
  6. <p>
  7. These are the present modules currently available for authoring a
  8. Rule. Press the icon next to a module's name for details about
  9. it. Not all entries are
  10. complete. Please <a href="mailto:medlab@colorado.edu">write to
  11. us</a> with suggestions for additional modules or improvements to
  12. existing ones.
  13. </p>
  14. {% assign modules_array = site.modules | sort: "type" %}
  15. {% assign last_type = "" %}
  16. {% for module in modules_array %}
  17. {% if module.layout == "module" %}
  18. {% if module.type != last_type %}
  19. {% if last_type != "" %}</div>{% endif %}
  20. <div class="module-type-header">
  21. <img src="{{ site.baseurl }} {{ site.data.module_types[module.type].icon }}" />
  22. {{ module.type }}
  23. </div>
  24. <div class="module-questions">{{ site.data.module_types[module.type].question }}</div>
  25. <div id="module-type-{{ module.type }}">
  26. {% endif %}
  27. {% assign last_type = module.type %}
  28. <span class="module" id="module-{{ module.title | slugify }}"
  29. draggable="true" ondragstart="drag(event)" ondragend="dragEnd()">
  30. <span id="module-name" title="{{ module.summary }}">{{ module.title }}</span>
  31. <a href="{{ module.url }}">
  32. <img title="More info" draggable="false" class="module-logo"
  33. src="{% link assets/tabler_icons/info-circle.svg %}" />
  34. </a>
  35. <a onclick="this.parentNode.remove()" class="delete-module"
  36. style="display:none">
  37. <img src="{% link assets/tabler_icons/x.svg %}" /></a>
  38. </span>
  39. {% endif %}
  40. {% endfor %}
  41. </div>