| [c4a4d13] | 1 | {% extends "base.html" %} |
|---|
| [4bf8692] | 2 | {% load groupdisplay %} |
|---|
| [c4a4d13] | 3 | |
|---|
| 4 | {% block title %}{{group.name}}{% endblock %} |
|---|
| 5 | {% block content %} |
|---|
| 6 | |
|---|
| [8f46374] | 7 | <div class='group-detail-page group-status-{{group.group_status.slug}}'> |
|---|
| [cb9b105] | 8 | <h1>{{group.name}}{% if group.abbreviation %} ({{group.abbreviation}}){%endif%}</h1> |
|---|
| [8f46374] | 9 | {% if group.group_status.slug != "active" %}<p class='group-status'><em>{{group.group_status.name}}</em></p>{%endif%} |
|---|
| [cb9b105] | 10 | |
|---|
| [b8a9c68] | 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> |
|---|
| [b38a26a] | 18 | {% if viewpriv %}<p>See also <a href='{% url groups:group-space-access group.pk %}'>space access</a>.</p>{% endif %} |
|---|
| [b8a9c68] | 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 %} |
|---|
| [c4a4d13] | 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> |
|---|
| [f37bfb1] | 32 | <tr><th>Group ID</th><td>{{group.pk}}</td></tr> |
|---|
| [c4a4d13] | 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> |
|---|
| [1f48e70] | 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> |
|---|
| [c4a4d13] | 40 | {% if viewpriv %}<tr class='private-info'> |
|---|
| [c3bb2c1] | 41 | <th>Group email list</th> |
|---|
| [1f48e70] | 42 | <td><a href='mailto:{{group.group_email}}'>{{group.group_email}}</a></td> |
|---|
| [c4a4d13] | 43 | </tr>{% endif %} |
|---|
| 44 | |
|---|
| [6032bec] | 45 | <tr><th colspan='2'>People</th></tr> |
|---|
| [669d447] | 46 | {% if user.is_authenticated %} |
|---|
| [6032bec] | 47 | {% for name, role, people in roles %} |
|---|
| [078e53a] | 48 | <tr{%if not role.publicly_visible %} class='private-info'{%endif%}> |
|---|
| 49 | <th>{{name}}</th> |
|---|
| [6032bec] | 50 | <td><ul> |
|---|
| [0270ed7] | 51 | {% for person in people %}<li>{{person.format_person}}</li>{%endfor%} |
|---|
| [6032bec] | 52 | </ul></td> |
|---|
| 53 | </tr> |
|---|
| 54 | {% endfor %} |
|---|
| [669d447] | 55 | {% else %} |
|---|
| [cec082b] | 56 | <tr><td colspan='2'>[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see people involved]</td></tr> |
|---|
| [669d447] | 57 | {% endif %} |
|---|
| [6032bec] | 58 | |
|---|
| [628e06c] | 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> |
|---|
| [1cfb402] | 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 %} |
|---|
| [628e06c] | 70 | |
|---|
| [c4a4d13] | 71 | <tr><th colspan='2'>Additional Information</th></tr> |
|---|
| [edb47bb] | 72 | {% if user.is_authenticated %} |
|---|
| 73 | <tr> |
|---|
| [c4a4d13] | 74 | <th>Constitution</th> |
|---|
| [4bf8692] | 75 | <td>{{group.constitution_url|format_constitution_link}}</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 | |
|---|
| [8f46374] | 152 | </div> |
|---|
| [c4a4d13] | 153 | {% endblock %} |
|---|
| 154 | |
|---|