Skip to content

Commit 36e1ffa

Browse files
authored
Merge pull request #20 from unicef/remove_unfold
Remove unfold theme
2 parents 38a23d1 + e8bf513 commit 36e1ffa

5 files changed

Lines changed: 0 additions & 14 deletions

File tree

src/hope_live/config/fragments/constance.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from django.conf import settings
2-
from unfold.contrib.constance.settings import UNFOLD_CONSTANCE_ADDITIONAL_FIELDS
32

43
from .. import env
54

65
CONSTANCE_REDIS_CONNECTION = env("CONSTANCE_REDIS_URL")
76
CONSTANCE_REDIS_CACHE_TIMEOUT = 1
87
CONSTANCE_ADDITIONAL_FIELDS = {
9-
**UNFOLD_CONSTANCE_ADDITIONAL_FIELDS,
108
"group_select": [
119
"hope_live.utils.constance.GroupChoiceField",
1210
{"initial": None, "required": False},

src/hope_live/templates/admin/base_site.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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 %}

src/hope_live/templates/unfold/helpers/header.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
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 %}

src/hope_live/templates/unfold/helpers/navigation_header.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
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 %}
@@ -23,6 +21,4 @@
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>

src/hope_live/templates/unfold/helpers/userlinks.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@
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

0 commit comments

Comments
 (0)