Ignore:
Timestamp:
Aug 25, 2011, 10:53:03 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
9b391ce, 165e5aa
Parents:
d3167b9
git-author:
Alex Dehnert <adehnert@…> (08/25/11 22:53:03)
git-committer:
Alex Dehnert <adehnert@…> (08/25/11 22:53:03)
Message:

Rearrange URLs

This factors out the common "groups" prefix, makes "groups" be used even for
single-group things, and puts group-related stuff in a single namespace.
(Django is lame, and while nested namespaces work, namespaces with wildcards
in the prefix don't, so I can't make a groups:group namespace, which would be
cute.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/template/index.html

    r6a646ce rfbb362a  
    77
    88<ul>
    9     <li><a href='{%url group-search%}'>Search groups</a></li>
    10     <li><a href='{%url group-list%}'>List of groups</a></li>
     9    <li><a href='{%url groups:search%}'>Search groups</a></li>
     10    <li><a href='{%url groups:list%}'>List of groups</a></li>
    1111    <li>First Year Summer Mailing<ul>
    1212        <li><a href='{%url fysm%}'>View the entries</a></li>
    1313        <li><a href='{%url fysm-select%}'>Submit an entry</a></li>
    1414    </ul></li>
    15     {%if perms.groups.view_signatories %}<li><a href='{% url groups-signatories %}'>View Signatories</a></li>{%endif%}
     15    {%if perms.groups.view_signatories %}<li><a href='{% url groups:signatories %}'>View Signatories</a></li>{%endif%}
    1616</ul>
    1717
     
    2929<ul>
    3030{% for group in groups %}
    31     <li><a href='{% url group-detail group.pk %}'>{{group}}</a></li>
     31    <li><a href='{% url groups:group-detail group.pk %}'>{{group}}</a></li>
    3232{%endfor%}
    3333</ul>
Note: See TracChangeset for help on using the changeset viewer.