uccser/cs-field-guide

View on GitHub
csfieldguide/templates/chapters/glossary.html

Summary

Maintainability
Test Coverage
{% extends "appendices/base.html" %}

{% load i18n static render_html_field %}

{% block title %}
  {% trans 'Glossary' %}
{% endblock title %}

{% block appendix_title %}
  {% trans 'Glossary' %}
{% endblock appendix_title %}

{% block content %}
  {% for glossary_term in glossary_terms %}
    <h3 id="{{ glossary_term.slug }}">
        <a class="heading-permalink" href="#{{ glossary_term.slug }}">
            {{ glossary_term.term }}
            <img src="{% static 'img/third-party/icons8-link-26.png' %}" class="permalink-icon">
        </a>
    </h3>
    {% render_html_field glossary_term.definition %}
  {% endfor %}
{% endblock content %}