Changeset 04bdacd


Ignore:
Timestamp:
Sep 9, 2012, 6:43:39 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
7e45324
Parents:
52a6940
git-author:
Alex Dehnert <adehnert@…> (09/08/12 22:41:04)
git-committer:
Alex Dehnert <adehnert@…> (09/09/12 06:43:39)
Message:

Show group recognition status on constitution page

Location:
asadb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    r52a6940 r04bdacd  
    10271027def downloaded_constitutions(request, ):
    10281028    constitutions = groups.models.GroupConstitution.objects
    1029     constitutions = constitutions.order_by('failure_reason', 'status_msg', 'failure_date', 'group__name', ).select_related('group')
     1029    constitutions = constitutions.order_by('failure_reason', 'status_msg', 'failure_date', 'group__name', ).select_related('group', 'group__group_status', )
    10301030    failures = collections.defaultdict(list)
    10311031    successes = collections.defaultdict(list)
  • asadb/template/groups/groups_constitutions.reason.html

    r52a6940 r04bdacd  
    1414<tr>
    1515    <th>{{const.group.pk}}</th>
    16     <td><a href='{% url groups:group-detail const.group.pk %}'>{{const.group.name}}</a></td>
     16    <td><a href='{% url groups:group-detail const.group.pk %}'>{{const.group.name}}</a>{% if const.group.group_status.slug != "active" %} ({{const.group.group_status}}){%endif%}</td>
    1717    <td>{{const.pk}}</td>
    1818    <td>{{const.source_url}}</td>
Note: See TracChangeset for help on using the changeset viewer.