summaryrefslogtreecommitdiff
path: root/lib/grappelli/templates/admin_doc/bookmarklets.html
diff options
context:
space:
mode:
Diffstat (limited to 'lib/grappelli/templates/admin_doc/bookmarklets.html')
-rw-r--r--lib/grappelli/templates/admin_doc/bookmarklets.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin_doc/bookmarklets.html b/lib/grappelli/templates/admin_doc/bookmarklets.html
new file mode 100644
index 0000000..7eba0be
--- /dev/null
+++ b/lib/grappelli/templates/admin_doc/bookmarklets.html
@@ -0,0 +1,37 @@
+{% extends "admin/base_site.html" %}
+{% load adminmedia %}
+{% load i18n %}
+{% block bodyclass %}documentation{% endblock %}
+{% block content-class %}content-grid{% endblock %}
+{% block breadcrumbs %}{% load i18n %}<div id="breadcrumbs"><a href="../../">{% trans "Home" %}</a> &rsaquo; <a href="../">{% trans "Documentation" %}</a> &rsaquo; {% trans "Bookmarklets" %}</div>{% endblock %}
+{% block title %}{% trans "Documentation bookmarklets" %}{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Bookmarklets" %}</h1>
+ <div class="container-grid rte">
+ {% blocktrans %}
+ <p>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. Note that some of these
+ bookmarklets require you to be viewing the site from a computer designated
+ as "internal" (talk to your system administrator if you aren't sure if
+ your computer is "internal").</p>
+ {% endblocktrans %}
+ <div class="module">
+ <h2><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){x=new ActiveXObject('Microsoft.XMLHTTP')}else 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='{{ admin_url }}doc/views/'+view+'/';})()">{% trans "Documentation for this page" %}</a></h2>
+ <p>{% trans "Jumps you from any page to the documentation for the view that generates that page." %}</p>
+ </div>
+ <div class="module">
+ <h2><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('GET',location.href,false);x.send(null);try{type=x.getResponseHeader('x-object-type');id=x.getResponseHeader('x-object-id');}catch(e){type='(none)';id='(none)';}d=document;b=d.body;e=d.createElement('div');e.id='xxxhhh';s=e.style;s.position='absolute';s.left='10px';s.top='10px';s.font='10px monospace';s.border='1px black solid';s.padding='4px';s.backgroundColor='#eee';e.appendChild(d.createTextNode('Type: '+type));e.appendChild(d.createElement('br'));e.appendChild(d.createTextNode('ID: '+id));e.appendChild(d.createElement('br'));l=d.createElement('a');l.href='#';l.onclick=function(){b.removeChild(e);};l.appendChild(d.createTextNode('[close]'));l.style.textDecoration='none';e.appendChild(l);b.appendChild(e);})();">{% trans "Show object ID" %}</a></h2>
+ <p>{% trans "Shows the content-type and unique ID for pages that represent a single object." %}</p>
+ </div>
+ <div class="module">
+ <h2><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){var x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){var x=new XMLHttpRequest()}else{return;}x.open('GET',location.href,false);x.send(null);try{var type=x.getResponseHeader('x-object-type');var id=x.getResponseHeader('x-object-id');}catch(e){return;}document.location='{{ admin_url }}'+type.split('.').join('/')+'/'+id+'/';})()">{% trans "Edit this object (current window)" %}</a></h2>
+ <p>{% trans "Jumps to the admin page for pages that represent a single object." %}</p>
+ </div>
+ <div class="module">
+ <h2><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){var x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){var x=new XMLHttpRequest()}else{return;}x.open('GET',location.href,false);x.send(null);try{var type=x.getResponseHeader('x-object-type');var id=x.getResponseHeader('x-object-id');}catch(e){return;}window.open('{{ admin_url }}'+type.split('.').join('/')+'/'+id+'/');})()">{% trans "Edit this object (new window)" %}</a></h2>
+ <p>{% trans "As above, but opens the admin page in a new window." %}</p>
+ </div>
+ </div>
+{% endblock %}