mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-03-09 19:33:12 +08:00
Add dev tool for quickly switching profile settings
This commit is contained in:
9
bookmarks/templates/shared/dev_tool.html
Normal file
9
bookmarks/templates/shared/dev_tool.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% load shared %}
|
||||
{% if debug and request.user.is_authenticated %}
|
||||
{{ request.user.profile|model_to_dict|json_script:"json_profile" }}
|
||||
<ld-dev-tool id="dev-tool"
|
||||
data-csrf-token="{{ csrf_token }}"
|
||||
data-form-action="{% url 'linkding:settings.update' %}"
|
||||
data-turbo-permanent>
|
||||
</ld-dev-tool>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user