Debian Codegraph @

django/contrib/admindocs/templates/admin_doc/bookmarklets.html

raw
1 {% extends "admin/base_site.html" %}
2 {% load i18n %}
3
4 {% block breadcrumbs %}
5 <div class="breadcrumbs">
6 <a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
7 &rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% translate 'Documentation' %}</a>
8 &rsaquo; {% translate 'Bookmarklets' %}
9 </div>
10 {% endblock %}
11 {% block title %}{% translate "Documentation bookmarklets" %}{% endblock %}
12
13 {% block content %}
14
15 <p class="quiet">{% blocktranslate trimmed %}
16 To install bookmarklets, drag the link to your bookmarks toolbar, or right-click
17 the link and add it to your bookmarks. Now you can select the bookmarklet
18 from any page in the site.
19 {% endblocktranslate %}</p>
20
21 <div id="content-main">
22 <h3><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+'/';})()">{% translate "Documentation for this page" %}</a></h3>
23 <p>{% translate "Jumps you from any page to the documentation for the view that generates that page." %}</p>
24 </div>
25
26 {% endblock %}