Show
Ignore:
Timestamp:
05/28/08 13:37:32 (22 months ago)
Author:
JensDiemer
Message:

replace the static admin sub menu with a dynamic one ;)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/media/PyLucid/internal_page/admin_menu/sub_menu.html

    r1549 r1602  
    1 <fieldset><legend>{% trans 'page admin' %}</legend> 
    2 <ul> 
    3     <li> 
    4         <a href="{{ commandURLprefix }}/page_admin/select_edit_page/">{% trans 'select page to edit' %}</a> <small>({% trans 'all pages available!' %})</small> 
    5     </li> 
    6     <li> 
    7         <a href="{{ commandURLprefix }}/page_admin/delete_pages/">{% trans 'delete pages' %}</a> <small>({% trans 'select pages to delete these.' %})</small> 
    8     </li> 
    9     <li> 
    10         <a href="{{ commandURLprefix }}/page_admin/sequencing/">{% trans 'sequencing the pages' %}</a> <small>({% trans 'change the page order.' %})</small> 
    11     </li> 
    12     {% if is_admin %} 
    13     <li> 
    14         <a href="{{ commandURLprefix }}/find_and_replace/find_and_replace/">{% trans 'find/replace' %}</a> <small>({% trans 'Find/replace page content.' %})</small> 
    15     </li> 
    16     {% endif %} 
    17 </ul> 
    18 </fieldset> 
    19  
    20 {% if is_admin %} 
    21  
    22 <fieldset><legend>{% trans 'edit look' %}</legend> 
    23 <ul> 
    24     <li> 
    25         <a href="{{ adminURLprefix }}/PyLucid/style/" onclick="OpenInWindow(this); return false">{% trans 'edit stylesheets' %}</a> 
    26         | 
    27         <a href="{{ adminURLprefix }}/PyLucid/style/{{ PAGE.style.id }}/" onclick="OpenInWindow(this); return false">{% trans 'edit current stylesheet' %}</a> 
    28     </li> 
    29     <li> 
    30         <a href="{{ adminURLprefix }}/PyLucid/template/" onclick="OpenInWindow(this); return false">{% trans 'edit templates' %}</a> 
    31         | 
    32         <a href="{{ adminURLprefix }}/PyLucid/template/{{ PAGE.template.id }}/" onclick="OpenInWindow(this); return false">{% trans 'edit current template' %}</a> 
    33     </li> 
    34 </ul> 
    35 </fieldset> 
    36  
    37 <fieldset><legend>{% trans 'user management' %}</legend> 
    38 <ul> 
    39     <li> 
    40         <a href="{{ adminURLprefix }}/auth/user/" onclick="OpenInWindow(this); return false">{% trans 'edit users' %}</a> 
    41     </li> 
    42     <li> 
    43         <a href="{{ adminURLprefix }}/auth/group/" onclick="OpenInWindow(this); return false">{% trans 'edit user groups' %}</a> 
    44     </li> 
    45     <li> 
    46         <a href="{{ commandURLprefix }}/EMailSystem/user_list/">{% trans 'EMail system' %}</a> 
    47     </li> 
    48 </ul> 
    49 </fieldset> 
    50  
    51 <fieldset><legend>{% trans 'miscellaneous' %}</legend> 
    52 <ul> 
    53     <li> 
    54         <a href="{{ commandURLprefix }}/plugin_admin/menu/">{% trans 'Plugin administration' %}</a> 
    55     </li> 
    56     <li> 
    57         <a href="{{ commandURLprefix }}/preference_editor/select/">{% trans 'Preferences editor' %}</a> 
    58     </li> 
    59     <li> 
    60         <a href="{{ commandURLprefix }}/filemanager/filelist/">{% trans 'Filemanager' %}</a> 
    61     </li> 
    62     <li> 
    63         <a href="{{ commandURLprefix }}/show_internals/menu/">{% trans 'Show internals' %}</a> 
    64     </li> 
    65 </ul> 
    66 </fieldset> 
    67  
    68 {% endif %} 
     1{% for section in dynamic_menu %} 
     2    <fieldset><legend>{{ section.name }}</legend> 
     3        <ul> 
     4        {% for entry in section %} 
     5            <li><a href="{{ entry.link }}" {% if entry.open_in_window %}onclick="OpenInWindow(this); return false"{% endif %}>{{ entry.title }}</a> - <small>{{ entry.help_text }}</small></li> 
     6        {% endfor %} 
     7        </ul> 
     8    </fieldset> 
     9{% endfor %}