{% extends "simpleui/base.html" %}

{% block navbar %}
  {{ block.super }}
  <!-- 语言切换按钮 -->
  <ul class="nav navbar-nav navbar-right">
      <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
              <i class="fas fa-language"></i> Language <span class="caret"></span>
          </a>
          <ul class="dropdown-menu" role="menu">
              <li><a href="{% url 'set_language' %}?language=en">English</a></li>
              <li><a href="{% url 'set_language' %}?language=zh-hans">简体中文</a></li>
          </ul>
      </li>
  </ul>
{% endblock %}
