[c4a4d13] | 1 | {% extends "base.html" %} |
---|
| 2 | |
---|
| 3 | {% block title %}{{group.name}}{% endblock %} |
---|
| 4 | {% block content %} |
---|
| 5 | |
---|
[cb9b105] | 6 | <h1>{{group.name}}{% if group.abbreviation %} ({{group.abbreviation}}){%endif%}</h1> |
---|
| 7 | |
---|
[b8a9c68] | 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> |
---|
[b38a26a] | 15 | {% if viewpriv %}<p>See also <a href='{% url groups:group-space-access group.pk %}'>space access</a>.</p>{% endif %} |
---|
[b8a9c68] | 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 %} |
---|
[c4a4d13] | 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> |
---|
[f37bfb1] | 29 | <tr><th>Group ID</th><td>{{group.pk}}</td></tr> |
---|
[c4a4d13] | 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> |
---|
[cec082b] | 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> |
---|
[c4a4d13] | 37 | {% if viewpriv %}<tr class='private-info'> |
---|
[c3bb2c1] | 38 | <th>Group email list</th> |
---|
[c4a4d13] | 39 | <td>{{group.group_email}}</td> |
---|
| 40 | </tr>{% endif %} |
---|
| 41 | |
---|
[6032bec] | 42 | <tr><th colspan='2'>People</th></tr> |
---|
[669d447] | 43 | {% if user.is_authenticated %} |
---|
[6032bec] | 44 | {% for name, role, people in roles %} |
---|
[078e53a] | 45 | <tr{%if not role.publicly_visible %} class='private-info'{%endif%}> |
---|
| 46 | <th>{{name}}</th> |
---|
[6032bec] | 47 | <td><ul> |
---|
[0270ed7] | 48 | {% for person in people %}<li>{{person.format_person}}</li>{%endfor%} |
---|
[6032bec] | 49 | </ul></td> |
---|
| 50 | </tr> |
---|
| 51 | {% endfor %} |
---|
[669d447] | 52 | {% else %} |
---|
[cec082b] | 53 | <tr><td colspan='2'>[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see people involved]</td></tr> |
---|
[669d447] | 54 | {% endif %} |
---|
[6032bec] | 55 | |
---|
[628e06c] | 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> |
---|
[1cfb402] | 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 %} |
---|
[628e06c] | 67 | |
---|
[c4a4d13] | 68 | <tr><th colspan='2'>Additional Information</th></tr> |
---|
[e0ac866] | 69 | {% if viewpriv %} |
---|
| 70 | <tr class='private-info'> |
---|
[c4a4d13] | 71 | <th>Constitution</th> |
---|
[68c93e8] | 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> |
---|
[c4a4d13] | 76 | </tr> |
---|
[e0ac866] | 77 | {% endif %} |
---|
[c4a4d13] | 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> |
---|
[aa6a940] | 83 | <tr><th>Last updated</th><td>{{group.update_string}}</td></tr> |
---|
[c4a4d13] | 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 | |
---|
[41f8b1e] | 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 %} |
---|
[58a5c6a] | 124 | {% if user.is_authenticated %} |
---|
[41f8b1e] | 125 | <p>No roles in this group.</p> |
---|
[58a5c6a] | 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 %} |
---|
[41f8b1e] | 129 | {% endif %} |
---|
| 130 | |
---|
[0bd161f] | 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 %} |
---|
[bae2a5f] | 149 | <p><a href='{% url admin:groups_groupnote_add %}?author={{user.username|urlencode}}&group={{group.pk}}'>Add note</a></p> |
---|
[0bd161f] | 150 | {% endif %} |
---|
| 151 | |
---|
[c4a4d13] | 152 | {% endblock %} |
---|
| 153 | |
---|