File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from django .conf import settings
2- from unfold .contrib .constance .settings import UNFOLD_CONSTANCE_ADDITIONAL_FIELDS
32
43from .. import env
54
65CONSTANCE_REDIS_CONNECTION = env ("CONSTANCE_REDIS_URL" )
76CONSTANCE_REDIS_CACHE_TIMEOUT = 1
87CONSTANCE_ADDITIONAL_FIELDS = {
9- ** UNFOLD_CONSTANCE_ADDITIONAL_FIELDS ,
108 "group_select" : [
119 "hope_live.utils.constance.GroupChoiceField" ,
1210 {"initial" : None , "required" : False },
Original file line number Diff line number Diff line change 33{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
44
55{% block branding %}
6- {% include "unfold/helpers/site_branding.html" %}
76{% endblock branding %}
87
98{% block nav-global %}{% endblock %}
Original file line number Diff line number Diff line change 99 {% block usertools %}
1010 {% if has_permission %}
1111 {% block welcome-msg %}
12- {% include 'unfold/helpers/welcomemsg.html' %}
1312 {% endblock welcome-msg %}
1413
1514 {% block userlinks %}
16- {% include 'unfold/helpers/userlinks.html' %}
1715 {% endblock userlinks %}
1816 {% endif %}
1917 {% endblock usertools %}
Original file line number Diff line number Diff line change 88 {% endif %}
99 >
1010 {% if site_logo %}
11- {% include "unfold/helpers/site_logo.html" %}
1211 {% elif branding %}
13- {% include "unfold/helpers/site_icon.html" %}
1412 {% endif %}
1513
1614 {% if site_dropdown %}
2321 < span class ="material-symbols-outlined block cursor-pointer h-[18px] xl:hidden! hover:text-base-700 dark:hover:text-base-200 " x-on:click ="sidebarMobileOpen = !sidebarMobileOpen ">
2422 close
2523 </ span >
26-
27- {% include "unfold/helpers/site_dropdown.html" %}
2824</ div >
Original file line number Diff line number Diff line change 44 < div class ="flex flex-row group items-center leading-none relative ">
55 < div class ="flex gap-4 items-center ">
66 {% if environment %}
7- {% include "unfold/helpers/label.html" with text=environment.0 type=environment.1 %}
87 {% endif %}
98
109 {% if extra_userlinks %}
1110 {{ extra_userlinks }}
1211 {% endif %}
1312
14- {% include "unfold/helpers/language_switch.html" %}
1513 < a id ="issue-opener " href ="# "> Open Issue</ a >
16- {% include "unfold/helpers/theme_switch.html" %}
17-
18- {% include "unfold/helpers/account_links.html" %}
1914 </ div >
2015 </ div >
2116
You can’t perform that action at this time.
0 commit comments