| 1 | {# Switch to icon instead of text in `sm` view size for BS3 only. #} |
| 2 | {%- if prev %} |
| 3 | <li> |
| 4 | <a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags }}"> |
| 5 | {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-left visible-tablet"></span>{%- endif -%} |
| 6 | {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-left visible-sm"></span>{%- endif -%} |
| 7 | <span class="hidden-sm hidden-tablet">{{ "«"|safe }} {{ prev.title|striptags|truncate(length=16, killwords=True) }}</span> |
| 8 | </a> |
| 9 | </li> |
| 10 | {%- endif %} |
| 11 | {%- if next %} |
| 12 | <li> |
| 13 | <a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}"> |
| 14 | {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-right visible-tablet"></span>{%- endif -%} |
| 15 | {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-right visible-sm"></span>{%- endif -%} |
| 16 | <span class="hidden-sm hidden-tablet">{{ next.title|striptags|truncate(length=16, killwords=True) }} {{ "»"|safe }}</span> |
| 17 | </a> |
| 18 | </li> |
| 19 | {%- endif %} |