sync from local backup
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{% extends "admin/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
|
||||
{% block extrastyle %}
|
||||
{{ block.super }}
|
||||
<link rel="stylesheet" href="{% static 'admin/css/custom_admin.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_header|default:_('Django site admin') }}{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<h1 id="site-name">
|
||||
<a href="{% url 'admin:index' %}">{{ site_header|default:_('Django site admin') }}</a>
|
||||
</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block usertools %}
|
||||
<div class="language-switcher-wrapper">
|
||||
<form id="language-form" action="{% url 'set_language' %}" method="post" style="display:inline-flex; align-items:center; gap:4px;">
|
||||
{% csrf_token %}
|
||||
<input name="next" type="hidden" value="{{ request.path }}">
|
||||
<select id="language-select" name="language" onchange="document.getElementById('language-form').submit();"
|
||||
style="padding:4px 8px; border-radius:4px; border:1px solid #4479a4; background:#fff; font-size:13px; cursor:pointer;">
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
<option value="zh-hans" {% if LANGUAGE_CODE == 'zh-hans' %}selected{% endif %}>简体中文</option>
|
||||
<option value="en" {% if LANGUAGE_CODE == 'en' %}selected{% endif %}>English</option>
|
||||
<option value="ja" {% if LANGUAGE_CODE == 'ja' %}selected{% endif %}>日本語</option>
|
||||
<option value="ko" {% if LANGUAGE_CODE == 'ko' %}selected{% endif %}>한국어</option>
|
||||
<option value="ru" {% if LANGUAGE_CODE == 'ru' %}selected{% endif %}>Русский</option>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user