source: asadb/template/groups/group_detail.html

space-accessstablestage
Last change on this file was edb47bb, checked in by Alex Dehnert <adehnert@…>, 13 years ago

Make constitutions MIT-public

Per http://mailman.mit.edu/pipermail/asa-official/2012-October/000184.html, "5.
Constitutions required" (paragraph two), this changes constitutions to be
viewable by any authenticated user instead of just group admins.

  • Property mode set to 100644
File size: 4.9 KB
Line 
1{% extends "base.html" %}
2{% load groupdisplay %}
3
4{% block title %}{{group.name}}{% endblock %}
5{% block content %}
6
7<div class='group-detail-page group-status-{{group.group_status.slug}}'>
8<h1>{{group.name}}{% if group.abbreviation %} ({{group.abbreviation}}){%endif%}</h1>
9{% if group.group_status.slug != "active" %}<p class='group-status'><em>{{group.group_status.name}}</em></p>{%endif%}
10
11{% if adminpriv %}{% include "groups/group_tools.part.html" %}
12{% else %}
13<div class='toolbox'>
14<h2>Tools</h2>
15{% if user.is_authenticated %}
16<p>You are not an admin of this group.</p>
17<p><a href='http://web.mit.edu/asa/database/faq.html#perm'>See FAQ</a> for more info.</p>
18{% if viewpriv %}<p>See also <a href='{% url groups:group-space-access group.pk %}'>space access</a>.</p>{% endif %}
19{% else %}
20<p>No tools available without <a href='{% url login %}?next={% firstof request.path '/' %}'>logging in</a>.</p>
21{% endif %}
22</div>
23{% endif %}
24
25<table class='pretty-table'>
26<tr><th colspan='2'>Basic Information</th></tr>
27<tr><th>Name</th><td>{{group.name}}</td></tr>
28<tr>
29    <th>Abbreviation</th>
30    <td>{%if group.abbreviation%}{{group.abbreviation}}{%else%}<i>none</i>{%endif%}</td>
31</tr>
32<tr><th>Group ID</th><td>{{group.pk}}</td></tr>
33<tr><th>Type</th><td>{{group.activity_category}}</td></tr>
34<tr><th>Description</th><td>{{group.description}}</td></tr>
35
36<tr><th colspan='2'>Contact Information</th></tr>
37<tr><th>Website</th><td><a href="{{group.website_url}}">{{group.website_url}}</a></td></tr>
38<tr><th>Meeting times</th><td>{{group.meeting_times}}</td></tr>
39<tr><th>Officers' email list</th><td>{% if user.is_authenticated %}<a href='mailto:{{group.officer_email}}'>{{group.officer_email}}</a>{% else %}[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see emails]{% endif %}</td></tr>
40{% if viewpriv %}<tr class='private-info'>
41    <th>Group email list</th>
42    <td><a href='mailto:{{group.group_email}}'>{{group.group_email}}</a></td>
43</tr>{% endif %}
44
45<tr><th colspan='2'>People</th></tr>
46{% if user.is_authenticated %}
47{% for name, role, people in roles %}
48<tr{%if not role.publicly_visible %} class='private-info'{%endif%}>
49    <th>{{name}}</th>
50    <td><ul>
51    {% for person in people %}<li>{{person.format_person}}</li>{%endfor%}
52    </ul></td>
53</tr>
54{% endfor %}
55{% else %}
56<tr><td colspan='2'>[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see people involved]</td></tr>
57{% endif %}
58
59<tr><th colspan='2'>Recognition</th></tr>
60<tr><th>Group status</th><td>{{group.group_status.name}}</td></tr>
61<tr><th>Group class</th><td>{{group.group_class.name}}</td></tr>
62<tr><th>Recognition date</th><td>{{group.recognition_date}}</td></tr>
63
64<tr><th colspan='2'>Financial Information</th></tr>
65<tr><th>Funding status</th><td>{{group.group_funding}}</td></tr>
66{% if viewpriv %}
67<tr class='private-info'><th>Main Account</th><td>{{group.main_account_id}}</td></tr>
68<tr class='private-info'><th>Funding Account</th><td>{{group.funding_account_id}}</td></tr>
69{% endif %}
70
71<tr><th colspan='2'>Additional Information</th></tr>
72{% if user.is_authenticated %}
73<tr>
74    <th>Constitution</th>
75    <td>{{group.constitution_url|format_constitution_link}}</td>
76</tr>
77{% endif %}
78<tr>
79    <th>Advisor</th>
80    <td>{{group.advisor_name}}</td>
81</tr>
82<tr><th>Athena locker</th><td>{{group.athena_locker}}</td></tr>
83<tr><th>Last updated</th><td>{{group.update_string}}</td></tr>
84
85{% if viewpriv %}
86<tr class='private-info'><th colspan='2'>Information that is not available to the general MIT community.</th></tr>
87{% endif %}
88
89</table>
90
91<table class='pretty-table'>
92<caption>Group Size</caption>
93<tr>
94    <th>Undergraduates</th>
95    <th>Graduate Students</th>
96    <th>MIT Community</th>
97    <th>Other</th>
98</tr>
99<tr>
100    <td>{{group.num_undergrads}}</td>
101    <td>{{group.num_grads}}</td>
102    <td>{{group.num_community}}</td>
103    <td>{{group.num_other}}</td>
104</tr>
105</table>
106
107<h2>My Connection</h2>
108
109{% if my_roles %}
110<p>You have the following connections to this group:</p>
111<table class='pretty-table'>
112<tr>
113    <th>Connection</th>
114    <th>Description</th>
115</tr>
116{% for holder in my_roles %}
117<tr>
118    <th>{{holder.role.display_name}}</th>
119    <td>{{holder.role.description}}</td>
120</tr>
121{% endfor %}
122</table>
123{% else %}
124{% if user.is_authenticated %}
125<p>No roles in this group.</p>
126{% else %}
127<p><a href='{% url login %}?next={% firstof request.path '/' %}'>Log in</a> to see any roles in this group.</p>
128{% endif %}
129{% endif %}
130
131<h2>Notes</h2>
132
133{% if notes %}
134<table class='pretty-table'>
135<thead>
136{% include "groups/note/detail.head.html" %}
137</thead>
138<tbody>
139{% for note in notes %}
140{% include "groups/note/detail.row.html" %}
141{% endfor %}
142</tbody>
143</table>
144{% else %}
145<p>No notes are visible to you at this time.</p>
146{% endif %}
147
148{% if perms.groups.add_groupnote %}
149<p><a href='{% url admin:groups_groupnote_add %}?author={{user.username|urlencode}}&amp;group={{group.pk}}'>Add note</a></p>
150{% endif %}
151
152</div>
153{% endblock %}
154
Note: See TracBrowser for help on using the repository browser.