|
1 | | -{% load i18n static simpletags %} |
2 | 1 | <!DOCTYPE html> |
| 2 | +{% load i18n static simpletags %} |
3 | 3 | {% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} |
4 | 4 | <html lang="{{ LANGUAGE_CODE|default:" en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}> |
5 | 5 | <head> |
6 | 6 | <title>{% block title %}{% endblock %}</title> |
7 | 7 |
|
8 | | - {% if "SIMPLEUI_STATIC_OFFLINE"|get_config %} |
9 | | - <link rel="stylesheet" href="{% static '/admin/simpleui-x/elementui/theme-chalk/index.css' %}"> |
10 | | - <link rel="stylesheet" href="{% static '/admin/simpleui-x/fontawesome-free-5.8.1-web/css/all.min.css' %}"> |
11 | | - {% else %} |
12 | | - <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> |
13 | | - <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.8.1/css/all.min.css"> |
14 | | - {% endif %} |
| 8 | + {% include 'admin/includes/css-part.html' %} |
15 | 9 |
|
16 | | - <link rel="stylesheet" type="text/css" href="{% static " admin |
17 | | - /css/base.css" %}"> |
18 | | - <link rel="stylesheet" href="{% static '/admin/simpleui-x/css/base.css' %}?_=2.7"> |
19 | | - <link rel="stylesheet" href="{% static '/admin/simpleui-x/theme/simpleui.css' %}"> |
20 | | - |
21 | | - |
22 | | - {% if "SIMPLEUI_STATIC_OFFLINE"|get_config %} |
23 | | - <script type="text/javascript" src="{% static '/admin/simpleui-x/js/vue.min.js' %}"></script> |
24 | | - <script type="text/javascript" src="{% static '/admin/simpleui-x/elementui/index.js' %}"></script> |
25 | | - {% else %} |
26 | | - {# |
27 | | - <script src="https://cdn.jsdelivr.net/npm/vue"></script> |
28 | | - #} |
29 | | - <script src="https://unpkg.com/vue@2.6.0/dist/vue.min.js"></script> |
30 | | - <script src="https://unpkg.com/element-ui/lib/index.js"></script> |
31 | | - {% endif %} |
| 10 | + <link rel="stylesheet" type="text/css" href="{% static '/admin/css/base.css' %}?_=2.7"> |
| 11 | + <link rel="stylesheet" type="text/css" href="{% static '/admin/simpleui-x/css/base.css' %}?_=2.7"> |
| 12 | + <link rel="stylesheet" type="text/css" href="{% static '/admin/simpleui-x/theme/simpleui.css' %}"> |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + {% include 'admin/includes/js-part.html' %} |
32 | 17 |
|
33 | 18 | <script type="text/javascript" src="{% static '/admin/simpleui-x/js/language.js' %}?_=2.1.2"></script> |
34 | 19 | <script type="text/javascript" src="{% static '/admin/simpleui-x/locale/en-us.js' %}?_=2.1.2"></script> |
|
46 | 31 | <script type="text/javascript" src="{% static '/admin/simpleui-x/js/cookie.js' %}"></script> |
47 | 32 | {% block extrastyle %}{% endblock %} |
48 | 33 | {% if LANGUAGE_BIDI %} |
49 | | - <link rel="stylesheet" type="text/css" href=" |
50 | | - {% block stylesheet_rtl %}{% static " admin |
51 | | - /css/rtl.css" %}{% endblock %}?_=20180905"/>{% endif %} |
| 34 | + <link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}?_=20180905"/>{% endif %} |
52 | 35 | {% block extrahead %}{% endblock %} |
53 | 36 | {% block responsive %} |
54 | 37 | <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
55 | | - <link rel="stylesheet" type="text/css" href="{% static " admin |
56 | | - /css/responsive.css" %}?_=20180905"/> |
| 38 | + <link rel="stylesheet" type="text/css" href="{% static "admin/css/responsive.css" %}?_=20180905"/> |
57 | 39 | {% if LANGUAGE_BIDI %} |
58 | | - <link rel="stylesheet" type="text/css" href="{% static " admin |
59 | | - /css/responsive_rtl.css" %}?_=20180905"/> |
| 40 | + <link rel="stylesheet" type="text/css" href="{% static "admin/css/responsive_rtl.css" %}?_=20180905"/> |
60 | 41 | {% endif %} |
61 | 42 | {% endblock %} |
62 | 43 | {% block blockbots %} |
|
77 | 58 |
|
78 | 59 | {% if "SIMPLEUI_DEFAULT_THEME"|get_config %} |
79 | 60 | <link v-else rel="stylesheet" |
80 | | - href="{% static 'admin/simpleui-x/theme/' %}{{ " SIMPLEUI_DEFAULT_THEME |
81 | | - "|get_config }}"> |
| 61 | + href="{% static 'admin/simpleui-x/theme/' %}{{ "SIMPLEUI_DEFAULT_THEME"|get_config }}"> |
82 | 62 | {% endif %} |
83 | 63 | </div> |
84 | 64 | <script type="text/javascript"> |
|
0 commit comments