blessing-skin-server/resources/views/shared/languages.twig

15 lines
472 B
Twig
Raw Normal View History

2019-11-24 14:32:58 +08:00
<li class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#">
2019-09-17 23:10:44 +08:00
<i class="fas fa-language" aria-hidden="true"></i>
2020-06-04 14:53:13 +08:00
<span class="d-none d-sm-inline">{{ current }}</span>
2019-09-17 23:10:44 +08:00
</a>
2019-11-24 14:32:58 +08:00
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
2019-09-17 23:10:44 +08:00
{% for lang in langs %}
2019-11-24 14:32:58 +08:00
<a href="{{ lang.url }}" class="dropdown-item locale">
{{ lang.name }}
</a>
<div class="dropdown-divider"></div>
2019-09-17 23:10:44 +08:00
{% endfor %}
2019-11-24 14:32:58 +08:00
</div>
2019-09-17 23:10:44 +08:00
</li>