Django

Code

Changeset 337

Show
Ignore:
Timestamp:
07/29/05 10:25:31 (3 years ago)
Author:
adrian
Message:

Fixed #223 -- Changed breadcrumbs in admin doc templates to use relative, not absolute, URLs. Thanks, Drew Amato

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/admin_templates/doc/bookmarklets.html

    r92 r337  
    11{% extends "base_site" %} 
    22 
    3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; Bookmarklets</div>{% endblock %} 
     3{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> &rsaquo; <a href="../">Documentation</a> &rsaquo; Bookmarklets</div>{% endblock %} 
    44 
    55{% block title %}Documentation bookmarklets{% endblock %} 
     
    1111select the bookmarklet from any page in the site.  Note that some of these 
    1212bookmarklets require you to be viewing the site from a computer designated 
    13 as "internal" (talk to your system administrator if you aren't sure if  
     13as "internal" (talk to your system administrator if you aren't sure if 
    1414your computer is "internal").</p> 
    1515 
     
    1717    <h3><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+'/';})()">Documentation for this page</a></h3> 
    1818    <p>Jumps you from any page to the documentation for the view that generates that page.</p> 
    19      
     19 
    2020    <h3><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);})();">Show object ID</a></h3> 
    2121    <p>Shows the content-type and unique ID for pages that represent a single object.</p> 
     
    2323    <h3><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='{{ admun_url }}/'+type.split('.').join('/')+'/'+id+'/';})()">Edit this object (current window)</a></h3> 
    2424    <p>Jumps to the admin page for pages that represent a single object.</p> 
    25      
     25 
    2626    <h3><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('{{ admun_url }}/'+type.split('.').join('/')+'/'+id+'/');})()">Edit this object (new window)</a></h3> 
    2727    <p>As above, but opens the admin page in a new window.</p> 
  • django/trunk/django/conf/admin_templates/doc/index.html

    r92 r337  
    11{% extends "base_site" %} 
    22 
    3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; Documentation</div>{% endblock %} 
     3{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">Home</a> &rsaquo; Documentation</div>{% endblock %} 
    44 
    55{% block title %}Documentation{% endblock %} 
     
    1212        <h3><a href="tags/">Tags</a></h3> 
    1313        <p>List of all the template tags and their functions.</p> 
    14          
     14 
    1515        <h3><a href="filters/">Filters</a></h3> 
    1616        <p>Filters are actions which can be applied to variables in a template to alter the output.</p> 
    17          
     17 
    1818        <h3><a href="models/">Models</a></h3> 
    1919        <p>Models are descriptions of all the objects in the system and their associated fields. Each model has a list of fields which can be accessed as template variables.</p> 
    20          
     20 
    2121        <h3><a href="views/">Views</a></h3> 
    2222        <p>Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.</p> 
    23          
     23 
    2424        <h3><a href="views/">Views</a></h3> 
    2525        <p>Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.</p> 
    26      
     26 
    2727    <h3><a href="bookmarklets/">Bookmarklets</a></h3> 
    2828    <p>Tools for your browser to quickly access admin functionality.</p> 
  • django/trunk/django/conf/admin_templates/doc/missing_docutils.html

    r92 r337  
    11{% extends "base_site" %} 
    22 
    3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; Documentation</div>{% endblock %} 
     3{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">Home</a> &rsaquo; Documentation</div>{% endblock %} 
    44 
    55{% block title %}Please install docutils{% endblock %} 
     
    1111<div id="content-main"> 
    1212        <h3>The admin documentation system requires Python's <a href="http://docutils.sf.net/">docutils</a> library.</h3> 
    13          
     13 
    1414        <p>Please ask your administrators to install <a href="http://docutils.sf.net/">docutils</a>.</p> 
    1515</div> 
  • django/trunk/django/conf/admin_templates/doc/model_detail.html

    r92 r337  
    1313{% endblock %} 
    1414 
    15 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; <a href="/doc/models/">Models</a> &rsaquo; {{ name }}</div>{% endblock %} 
     15{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> &rsaquo; <a href="../../">Documentation</a> &rsaquo; <a href="../">Models</a> &rsaquo; {{ name }}</div>{% endblock %} 
    1616 
    1717{% block title %}Model: {{ name }}{% endblock %} 
  • django/trunk/django/conf/admin_templates/doc/model_index.html

    r92 r337  
    33{% block coltype %}colSM{% endblock %} 
    44 
    5 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; Models</div>{% endblock %} 
     5{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> &rsaquo; <a href="../">Documentation</a> &rsaquo; Models</div>{% endblock %} 
    66 
    77{% block title %}Models{% endblock %} 
  • django/trunk/django/conf/admin_templates/doc/template_filter_index.html

    r92 r337  
    11{% extends "base_site" %} 
    2  
    32 
    43{% block coltype %}colSM{% endblock %} 
    54 
    6  
    7  
    8 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; filters</div>{% endblock %} 
    9  
     5{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> &rsaquo; <a href="../">Documentation</a> &rsaquo; filters</div>{% endblock %} 
    106 
    117{% block title %}Template filters{% endblock %} 
  • django/trunk/django/conf/admin_templates/doc/template_tag_index.html

    r92 r337  
    11{% extends "base_site" %} 
    2  
    32 
    43{% block coltype %}colSM{% endblock %} 
    54 
    6  
    7  
    8 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; Tags</div>{% endblock %} 
    9  
     5{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> &rsaquo; <a href="../">Documentation</a> &rsaquo; Tags</div>{% endblock %} 
    106 
    117{% block title %}Template tags{% endblock %} 
  • django/trunk/django/conf/admin_templates/doc/view_detail.html

    r92 r337  
    11{% extends "base_site" %} 
    22 
    3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; <a href="/doc/views/">Views</a> &rsaquo; {{ name }}</div>{% endblock %} 
     3{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> &rsaquo; <a href="../../">Documentation</a> &rsaquo; <a href="../">Views</a> &rsaquo; {{ name }}</div>{% endblock %} 
    44 
    55{% block title %}View: {{ name }}{% endblock %} 
  • django/trunk/django/conf/admin_templates/doc/view_index.html

    r92 r337  
    33{% block coltype %}colSM{% endblock %} 
    44 
    5 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; Views</div>{% endblock %} 
     5{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">Home</a> &rsaquo; <a href="../">Documentation</a> &rsaquo; Views</div>{% endblock %} 
    66 
    77{% block title %}Views{% endblock %} 
    88 
    9  
    109{% block content %} 
    11  
    12  
    1310 
    1411<h1>View documentation</h1> 
    1512 
    16  
    1713<div id="content-main"> 
    18  
    1914 
    2015{% regroup views|dictsort:"site_id" by site as views_by_site %} 
     
    3530</div> 
    3631 
    37  
    3832{% endblock %} 
    3933