source: asadb/template/groups/group_detail.html @ 68c93e8

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

Correctly linkify constitution URL

We previously linkified any non-empty constitution URL. We now only
linkify constitution URLs starting with "http://" or "https://".

  • Property mode set to 100644
File size: 4.7 KB
Line 
1{% extends "base.html" %}
2
3{% block title %}{{group.name}}{% endblock %}
4{% block content %}
5
6<h1>{{group.name}}{% if group.abbreviation %} ({{group.abbreviation}}){%endif%}</h1>
7
8{% if adminpriv %}{% include "groups/group_tools.part.html" %}
9{% else %}
10<div class='toolbox'>
11<h2>Tools</h2>
12{% if user.is_authenticated %}
13<p>You are not an admin of this group.</p>
14<p><a href='http://web.mit.edu/asa/database/faq.html#perm'>See FAQ</a> for more info.</p>
15{% if viewpriv %}<p>See also <a href='{% url groups:group-space-access group.pk %}'>space access</a>.</p>{% endif %}
16{% else %}
17<p>No tools available without <a href='{% url login %}?next={% firstof request.path '/' %}'>logging in</a>.</p>
18{% endif %}
19</div>
20{% endif %}
21
22<table class='pretty-table'>
23<tr><th colspan='2'>Basic Information</th></tr>
24<tr><th>Name</th><td>{{group.name}}</td></tr>
25<tr>
26    <th>Abbreviation</th>
27    <td>{%if group.abbreviation%}{{group.abbreviation}}{%else%}<i>none</i>{%endif%}</td>
28</tr>
29<tr><th>Group ID</th><td>{{group.pk}}</td></tr>
30<tr><th>Type</th><td>{{group.activity_category}}</td></tr>
31<tr><th>Description</th><td>{{group.description}}</td></tr>
32
33<tr><th colspan='2'>Contact Information</th></tr>
34<tr><th>Website</th><td><a href="{{group.website_url}}">{{group.website_url}}</a></td></tr>
35<tr><th>Meeting times</th><td>{{group.meeting_times}}</td></tr>
36<tr><th>Officers' email list</th><td>{% if user.is_authenticated %}{{group.officer_email}}{% else %}[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see emails]{% endif %}</td></tr>
37{% if viewpriv %}<tr class='private-info'>
38    <th>Group email list</th>
39    <td>{{group.group_email}}</td>
40</tr>{% endif %}
41
42<tr><th colspan='2'>People</th></tr>
43{% if user.is_authenticated %}
44{% for name, role, people in roles %}
45<tr{%if not role.publicly_visible %} class='private-info'{%endif%}>
46    <th>{{name}}</th>
47    <td><ul>
48    {% for person in people %}<li>{{person.format_person}}</li>{%endfor%}
49    </ul></td>
50</tr>
51{% endfor %}
52{% else %}
53<tr><td colspan='2'>[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see people involved]</td></tr>
54{% endif %}
55
56<tr><th colspan='2'>Recognition</th></tr>
57<tr><th>Group status</th><td>{{group.group_status.name}}</td></tr>
58<tr><th>Group class</th><td>{{group.group_class.name}}</td></tr>
59<tr><th>Recognition date</th><td>{{group.recognition_date}}</td></tr>
60
61<tr><th colspan='2'>Financial Information</th></tr>
62<tr><th>Funding status</th><td>{{group.group_funding}}</td></tr>
63{% if viewpriv %}
64<tr class='private-info'><th>Main Account</th><td>{{group.main_account_id}}</td></tr>
65<tr class='private-info'><th>Funding Account</th><td>{{group.funding_account_id}}</td></tr>
66{% endif %}
67
68<tr><th colspan='2'>Additional Information</th></tr>
69{% if viewpriv %}
70<tr class='private-info'>
71    <th>Constitution</th>
72    <td>{% if group.constitution_url %}
73        {% if constitution_link %}<a href='{{group.constitution_url}}'>{{group.constitution_url}}</a>
74        {%else%}{{group.constitution_url}}{%endif%}
75    {%else%}<i>not provided</i>{%endif%}</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{% endblock %}
153
Note: See TracBrowser for help on using the repository browser.