accrete 0.0.120__py3-none-any.whl → 0.0.121__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- accrete/contrib/ui/templates/ui/layout.html +1 -8
- accrete/contrib/ui/templatetags/ui.py +4 -3
- {accrete-0.0.120.dist-info → accrete-0.0.121.dist-info}/METADATA +1 -1
- {accrete-0.0.120.dist-info → accrete-0.0.121.dist-info}/RECORD +6 -6
- {accrete-0.0.120.dist-info → accrete-0.0.121.dist-info}/WHEEL +0 -0
- {accrete-0.0.120.dist-info → accrete-0.0.121.dist-info}/licenses/LICENSE +0 -0
@@ -90,14 +90,7 @@
|
|
90
90
|
>
|
91
91
|
<a id="navbar-user-name" class="navbar-link is-arrowless">{{ user }}</a>
|
92
92
|
<div id="navbar-end-dropdown" class="navbar-dropdown is-right">
|
93
|
-
|
94
|
-
<hr class="navbar-divider">
|
95
|
-
<a class="navbar-item" href="{% url 'user:detail' %}">{% translate 'Preferences' %}</a>
|
96
|
-
{% if request.user.is_staff %}
|
97
|
-
<a class="navbar-item" hx-boost="false" href="/admin/">Admin</a>
|
98
|
-
{% endif %}
|
99
|
-
<hr class="navbar-divider">
|
100
|
-
<a class="navbar-item" hx-post="{% url 'user:logout' %}">{% translate "Log out" %}</a>
|
93
|
+
{% combine_templates 'accrete_navbar_end_dropdown.html' request %}
|
101
94
|
</div>
|
102
95
|
</div>
|
103
96
|
{% endblock %}
|
@@ -5,7 +5,7 @@ from datetime import datetime, date, timedelta
|
|
5
5
|
from django.utils.translation import gettext_lazy as _
|
6
6
|
from django import template
|
7
7
|
from django.db.models import Manager, DecimalField, IntegerField, FloatField, Model
|
8
|
-
from django.
|
8
|
+
from django.apps import apps
|
9
9
|
from django.template.loader import render_to_string
|
10
10
|
from django.utils.safestring import mark_safe
|
11
11
|
|
@@ -16,10 +16,11 @@ register = template.Library()
|
|
16
16
|
@register.simple_tag(name='combine_templates')
|
17
17
|
def combine_templates(template_name, request=None):
|
18
18
|
html = ''
|
19
|
-
for app in
|
19
|
+
for app in apps.app_configs.keys():
|
20
20
|
try:
|
21
21
|
html += render_to_string(
|
22
|
-
f'{app
|
22
|
+
f'{app}/{template_name}',
|
23
|
+
request=request
|
23
24
|
)
|
24
25
|
except template.TemplateDoesNotExist:
|
25
26
|
continue
|
@@ -320,7 +320,7 @@ accrete/contrib/ui/templates/django/forms/widgets/text.html,sha256=MSmLlQc7PsPoD
|
|
320
320
|
accrete/contrib/ui/templates/django/forms/widgets/textarea.html,sha256=c9BTedqb3IkXLyVYd0p9pR8DFnsXCNGoxVBWZTk_Fic,278
|
321
321
|
accrete/contrib/ui/templates/ui/content_right.html,sha256=XUF1tYpSKfO9FleYtJ2QmWPmwdLYxLHXdBLRa-BrFUs,221
|
322
322
|
accrete/contrib/ui/templates/ui/form_error.html,sha256=uA8FLdZyeU0vXJHlGK3rcBqcmXb63MLPV32uQyUTak4,348
|
323
|
-
accrete/contrib/ui/templates/ui/layout.html,sha256=
|
323
|
+
accrete/contrib/ui/templates/ui/layout.html,sha256=jHDPh1yb59lULZNgglMKNG-akLe8aL0kLNkXSOrL-yU,12593
|
324
324
|
accrete/contrib/ui/templates/ui/list.html,sha256=NY8DmHGl3n5O1u-_B9a_mlAck19ZmpYthzecADuc3BM,2250
|
325
325
|
accrete/contrib/ui/templates/ui/list_update.html,sha256=mLQTCgkKfVI5jrgei-Upc1u87iXL0Q63uLzXHPwMyeo,110
|
326
326
|
accrete/contrib/ui/templates/ui/message.html,sha256=t3bZ5EE7IgQYJroCdLKFeUkZiNbgKkErVYQm6Y3IKpg,532
|
@@ -337,7 +337,7 @@ accrete/contrib/ui/templates/ui/widgets/model_search_select.html,sha256=PnU00lRQ
|
|
337
337
|
accrete/contrib/ui/templates/ui/widgets/model_search_select_multi.html,sha256=Oj22YJ0awVllgLSTUgrVz3S6IDJckWUr9vvd_p1kU7A,4477
|
338
338
|
accrete/contrib/ui/templates/ui/widgets/model_search_select_options.html,sha256=cE7mv6HzSsjFbxNqQe5QiZEemKDNMTOsMxkn-5f9rvk,204
|
339
339
|
accrete/contrib/ui/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
340
|
-
accrete/contrib/ui/templatetags/ui.py,sha256=
|
340
|
+
accrete/contrib/ui/templatetags/ui.py,sha256=M8rbD6k7qS4uMSSA7_G0x3bK56b4aw5VB6YYHKnrhPk,4055
|
341
341
|
accrete/contrib/ui/widgets/__init__.py,sha256=W_y10jfu37lygp4frXuKFSGec97gpNbWskG6DMhTKtY,69
|
342
342
|
accrete/contrib/ui/widgets/search_select.py,sha256=RloKdh_t8So6aL4-SmHMAd0-bVY57_RFVM0Hmhw2q5c,3432
|
343
343
|
accrete/contrib/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -381,7 +381,7 @@ accrete/utils/forms.py,sha256=IvxbXNpSd4a-JBgsTJhs2GHe-DCRWX-xnVPRcoiCzbI,3104
|
|
381
381
|
accrete/utils/log.py,sha256=BH0MBDweAjx30wGBO4F3sFhbgkSoEs7T1lLLjlYZNnA,407
|
382
382
|
accrete/utils/models.py,sha256=2xTacvcpmDK_Bp4rAK7JdVLf8HU009LYNJ6eSpMgYZI,1014
|
383
383
|
accrete/utils/views.py,sha256=AutijWetWGgjdO1PNc4gxCblT-i1fAfldNDFRbO9Sac,5012
|
384
|
-
accrete-0.0.
|
385
|
-
accrete-0.0.
|
386
|
-
accrete-0.0.
|
387
|
-
accrete-0.0.
|
384
|
+
accrete-0.0.121.dist-info/METADATA,sha256=h2kk0d5rDwio5v30rRXg3JtdMfA9aadRDAAoXoUjFGU,4953
|
385
|
+
accrete-0.0.121.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
386
|
+
accrete-0.0.121.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
387
|
+
accrete-0.0.121.dist-info/RECORD,,
|
File without changes
|
File without changes
|