schon/engine/core/templates/admin_doc/bookmarklets.html
Egor fureunoir Gorbunov f8f051f4e9 feat(admin-docs): add base structure and templates for admin documentation
Introduce templates for admin documentation, including model details, views, template tags, filters, and bookmarklets. This enhances the admin interface by providing detailed documentation directly within the application.
2026-02-21 19:52:28 +03:00

34 lines
2.3 KiB
HTML

{% extends "admin/base_site.html" %}
{% load i18n %}
{% block title %}{% translate "Documentation bookmarklets" %}{% endblock %}
{% block breadcrumbs %}
<div class="flex gap-2 items-center px-4 py-3 text-sm text-base-400 dark:text-base-500">
<a href="{% url 'admin:index' %}" class="hover:text-primary-600 dark:hover:text-primary-500">{% translate 'Home' %}</a>
<span class="material-symbols-outlined md-18">chevron_right</span>
<a href="{% url 'django-admindocs-docroot' %}" class="hover:text-primary-600 dark:hover:text-primary-500">{% translate 'Documentation' %}</a>
<span class="material-symbols-outlined md-18">chevron_right</span>
<span class="text-base-700 dark:text-base-300">{% translate 'Bookmarklets' %}</span>
</div>
{% endblock %}
{% block content %}
<h1 class="font-semibold mb-4 text-xl text-base-900 dark:text-base-100">{% translate "Documentation bookmarklets" %}</h1>
<p class="text-sm text-base-500 dark:text-base-400 mb-6">{% blocktranslate trimmed %}
To install bookmarklets, drag the link to your bookmarks toolbar, or right-click
the link and add it to your bookmarks. Now you can select the bookmarklet
from any page in the site.
{% endblocktranslate %}</p>
<div class="border border-base-200 rounded-default bg-white shadow-xs dark:bg-base-900 dark:border-base-800">
<div class="px-4 py-4">
<div class="flex items-center gap-3 mb-2">
<span class="material-symbols-outlined text-primary-600 dark:text-primary-500">bookmark</span>
<a href="javascript:(function(){if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('HEAD',location.href,false);x.send(null);try{view=x.getResponseHeader('x-view');}catch(e){alert('No view found for this page');return;}if(view=='undefined'){alert('No view found for this page');}document.location='{% url 'django-admindocs-views-index' %}'+view+'/';})()" class="font-semibold text-primary-600 dark:text-primary-500 hover:underline">{% translate "Documentation for this page" %}</a>
</div>
<p class="text-sm text-base-500 dark:text-base-400 ml-9">{% translate "Jumps you from any page to the documentation for the view that generates that page." %}</p>
</div>
</div>
{% endblock %}