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