Update directions in templates

This commit is contained in:
hiro 2018-12-14 11:09:07 +01:00 committed by emma peel
parent 18789aba3a
commit e6da881ae9
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@
</nav>
<nav class="d-none d-sm-block section-nav bg-white sidetopics sticky" id="sidenav-topics">
<nav class="d-none d-sm-block section-nav bg-white sidetopics sticky {{ bag('alternatives', this.alt, 'direction') }}" id="sidenav-topics">
<h4 class="text-primary pl-4">{{ _('Topics') }}</h4>
<ul class="nav nav-pills flex-column">
{% set topicbag = 'topics+en' %}

View File

@ -1,10 +1,10 @@
{% from "macros/topic.html" import render_topic %}
<div id="#topics">
{% for item in this.children %}
<h5 class="text-muted text-uppercase mb-3 p-0 {{ bag('alternatives', alternative, 'direction') }}">
<h5 class="text-muted text-uppercase mb-3 p-0 {{ bag('alternatives', this.alt, 'direction') }}">
<a href="{{ item|url }}">{{ item.title }}</a>
</h5>
<p class="text-muted mb-3 p-0 {{ bag('alternatives', alternative, 'direction') }}">
<p class="text-muted mb-3 p-0 {{ bag('alternatives', this.alt, 'direction') }}">
{{ item.description }}
</p>