modules.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ---
  2. layout: page
  3. title: Modules
  4. permalink: /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">{{ module.type }}
  21. <button onclick="toggleVisible('module-type-{{ module.type }}')" class="button chevrons"><img src="{% link assets/tabler_icons/chevrons-down.svg %}" title="Show/hide" /></button>
  22. </div>
  23. <div id="module-type-{{ module.type }}">
  24. {% endif %}
  25. {% assign last_type = module.type %}
  26. <span class="module" id="module-{{ module.title | slugify }}"
  27. draggable="true" ondragstart="drag(event)">
  28. <span id="module-title" title="{{ module.summary }}">
  29. {{ module.title }}</span>
  30. <a target="_blank" href="{{ module.url }}">
  31. <img title="{{ module.type }} (press for info)" draggable="false" class="module-logo"
  32. {% if module.type == "structure" %}
  33. src="{% link assets/tabler_icons/building.svg %}" {% endif %}
  34. {% if module.type == "process" %}
  35. src="{% link assets/tabler_icons/rotate.svg %}" {% endif %}
  36. {% if module.type == "decision" %}
  37. src="{% link assets/tabler_icons/thumb-up.svg %}" {% endif %}
  38. {% if module.type == "culture" %}
  39. src="{% link assets/tabler_icons/palette.svg %}" {% endif %}
  40. /></a>
  41. <a onclick="this.parentNode.remove()" class="delete-module"
  42. style="display:none">
  43. <img src="{% link assets/tabler_icons/x.svg %}" /></a>
  44. </span>
  45. {% endif %}
  46. {% endfor %}
  47. </div>