Changeset 169ad5a


Ignore:
Timestamp:
Jan 2, 2013, 4:29:11 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
bfa60e8
Parents:
edb47bb
git-author:
Alex Dehnert <adehnert@…> (01/02/13 04:29:11)
git-committer:
Alex Dehnert <adehnert@…> (01/02/13 04:29:11)
Message:

Set pagename for per-group pages

This causes the "Groups" tab to be highlighted when you view most per-group
pages. As an exception, I don't set it for the "Space Access" page --- I'm
considering adding a "Space" page...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    rc80e9a2 r169ad5a  
    8888        context = super(GroupDetailView, self).get_context_data(**kwargs)
    8989        group = context['group']
     90        context['pagename'] = "groups"
    9091
    9192        # Indicate whether this person should be able to see "private" info
     
    213214        'form':  form,
    214215        'msg':   msg,
     216        'pagename': "groups",
    215217    }
    216218    return render_to_response('groups/group_change_main.html', context, context_instance=RequestContext(request), )
     
    490492        officers_data.append((True, "extra.%d" % (i, ), "", null_role_list))
    491493    context['officers'] = officers_data
     494    context['pagename'] = "groups"
    492495
    493496    return render_to_response('groups/group_change_officers.html', context, context_instance=RequestContext(request), )
     
    10231026        else:
    10241027            context['title'] = "Recent Changes"
     1028        context['pagename'] = 'groups'
    10251029        return context
    10261030
Note: See TracChangeset for help on using the changeset viewer.