datatracker/ietf/templates/group/group_about.html
Lars Eggert 9133b9469e Style the metadata tables for groups, documents, etc. like Henrik prefers.
Commit ready for merge.
 - Legacy-Id: 9856
2015-07-22 14:06:02 +00:00

158 lines
4.5 KiB
HTML

{% extends "group/group_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load firstof from future %}
{% load ietf_filters %}
{% block group_content %}
{% origin %}
{% if group.state_id == "conclude" %}
<p class="alert alert-warning"><b>Note:</b> The data for concluded {{ group.type.name }}s is occasionally incorrect.</p>
{% endif %}
<br>
<table class="table table-condensed">
<tbody class="meta">
<tr>
<th>{{ group.type.name }}</th>
<th>Name</th>
<td>{{ group.name }}</td>
</tr>
<tr>
<td></td>
<th>Acronym</th>
<td>{{ group.acronym }}</td>
</tr>
<tr>
<td></td>
{% if group.parent and group.parent.type_id == "area" %}
<th>{{ group.parent.type.name }}</th>
<td>{{ group.parent.name }} ({{ group.parent.acronym }})</td>
{% else %}
<th></th><td></td>
{% endif %}
</tr>
<tr>
<td></td>
<th>State</th>
<td>
{{ group.state.name }}
{% if requested_close %}
<div class="label label-info">In the process of being closed</div>
{% endif %}
</td>
</tr>
{% if group.features.has_chartering_process %}
<tr>
<td></td>
<th>Charter</th>
<td>
{% if group.charter %}
<a href="{% url "doc_view" name=group.charter.name %}">{{ group.charter.name }}-{{ group.charter.rev }}</a>
<span class="label label-info">{{ group.charter.get_state.name }}</span>
{% else %}
(None)
{% if user|has_role:"Area Director,Secretariat" %}
<a class="btn btn-warning btn-xs" href="{% url "ietf.group.edit.submit_initial_charter" group_type=group.type_id acronym=group.acronym %}">Submit charter</a>
{% endif %}
{% endif %}
</td>
</tr>
{% endif %}
{% with group.groupurl_set.all as urls %}
{% if urls %}
<tr>
<td></td>
<th>More info</th>
<td>
{% for url in urls %}
<a href="{{ url.url }}">{% firstof url.name url.url %}</a>{% if not forloop.last %}<br>{% endif %}
{% endfor %}
</td>
</tr>
{% endif %}
{% endwith %}
</tbody>
<tbody class="meta">
{% for slug, label, roles in group.personnel %}
<tr>
{% if forloop.first %}
<th>Personnel</th>
{% else %}
<td></td>
{% endif %}
<th>{{ label }}</th>
<td>
{% for r in roles %}
<span class="fa fa-envelope-o"></span>
<a href="mailto:{{ r.email.address }}">{{ r.person.plain_name }}</a>
<br>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
{% if group.list_email %}
<tbody class="meta">
<tr>
<th>Mailing list</th>
<th>Address</th><td>{{ group.list_email|urlize }}</td>
</tr>
<tr><td></td><th>To subscribe</th><td>{{ group.list_subscribe|urlize }}</td></tr>
<tr><td></td><th>Archive</th><td>{{ group.list_archive|urlize }}</td></tr>
</tbody>
{% endif %}
{% if group.state_id != "conclude" and group.type_id != "sdo" and group.type_id != "rfcedtyp" and group.type_id != "isoc" %}
<tbody class="meta">
<tr>
<th>Jabber chat</th>
<th>Room address</th>
<td><a href="xmpp://{{ group.acronym }}@jabber.ietf.org">xmpp://{{ group.acronym }}@jabber.ietf.org</a></td>
</tr>
<tr>
<td></td>
<th>Logs</th>
<td><a href="https://jabber.ietf.org/logs/{{ group.acronym }}/">https://jabber.ietf.org/logs/{{ group.acronym }}/</a></td>
</tr>
</tbody>
{% endif %}
</table>
{% if group.features.has_chartering_process %}
<h2>Charter for {% if group.state_id == "proposed" %}proposed{% endif %} {{ group.type.desc.title }}</h2>
{# the linebreaks filter adds <p/>, no surrounding <p/> necessary: #}
{{ group.charter_text|linebreaks }}
{% else %}
<h2>About</h2>
{{ group.description|default:"No description yet."|linebreaks }}
{% endif %}
{% if group.features.has_milestones %}
<h2>
{% if group.state_id == "proposed" %}
Proposed milestones
{% else %}
Milestones
{% endif %}
</h2>
{% include "group/milestones.html" with milestones=group.milestones %}
{% if milestones_in_review %}
<p>{{ milestones_in_review|length }} new milestone{{ milestones_in_review|pluralize }}
currently in {{ milestone_reviewer }} review.</p>
{% endif %}
{% endif %}
{% endblock %}