    </span>
          <span class="chapter-title">
            {{ localizedChapterTitles[prev_chapter['slug']] if localizedChapterTitles[prev_chapter['slug']]|length else prev_chapter['title'] }}
          </span>
          <span class="not-translated">
            ({{ self.translation_not_available() }})
          </span>
      </a>
      {% endif %}
  {% endif %}

  {% if next_chapter %}
    {% if chapter_lang_exists(lang, year, next_chapter['slug']) %}
    <a id="next-chapter" title="{{ self.next() }}" h