Changeset e499677


Ignore:
Timestamp:
Dec 26, 2011, 4:40:54 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
72a3d90
Parents:
d9137a7
git-author:
Alex Dehnert <adehnert@…> (12/26/11 04:40:54)
git-committer:
Alex Dehnert <adehnert@…> (12/26/11 04:40:54)
Message:

Mark group status on group list pages (Trac: #45)

Location:
asadb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • asadb/media/style/style.css

    r754d5a4 re499677  
    220220}
    221221
     222tr.group-status-active.group-active-True td.group-status
     223{
     224    background-color: green;
     225    color: black;
     226}
     227tr.group-active-True td.group-status
     228{
     229    background-color: yellow;
     230    color: black;
     231}
     232tr.group-active-False td.group-status
     233{
     234    background-color: red;
     235    color: black;
     236}
     237
    222238
    223239/* Reset some stuff */
  • asadb/template/groups/group_list.html

    rfbb362a re499677  
    1717<h2>The Groups</h2>
    1818
    19 <table class='pretty-table'>
     19<table class='pretty-table group-list'>
    2020<thead>
    2121    <tr>
    2222        <th>Name</th>
     23        <th>Status</th>
    2324        <th>Website</th>
    2425        <th>ASA DB</th>
     
    2930<tbody>
    3031{% for group in group_list %}
    31     <tr>
     32    <tr class='group-status-{{group.group_status.slug}} group-active-{{group.group_status.is_active}}'>
    3233        <th>{{group.name}}</th>
     34        <td class='group-status'>{{group.group_status}}</td>
    3335        <td>{% if group.website_url %}<a href='{{group.website_url}}'>Website</a>{%endif%}</td>
    3436        <td><a href='{% url groups:group-detail group.pk %}'>DB Entry</a></td>
  • asadb/template/groups/groups_signatories.html

    rce7fd92 re499677  
    2929{%for group, role_list in officers %}
    3030<tr>
    31     <th><a href='{% url groups:group-detail group.pk %}'>{{group}}</a></th>
     31    <th><a href='{% url groups:group-detail group.pk %}'>{{group}}</a> ({{group.group_status}})</th>
    3232    {%for holders in role_list%}
    3333    <td>{% if holders %}<ul>{% for person in holders %}<li>{{person}}</li>{%endfor%}</ul>{% endif %}</td>
Note: See TracChangeset for help on using the changeset viewer.