Skip to content

Commit

Permalink
Style the metadata tables for groups, documents, etc. like Henrik pre…
Browse files Browse the repository at this point in the history
…fers.

Commit ready for merge.
 - Legacy-Id: 9856
  • Loading branch information
larseggert committed Jul 22, 2015
1 parent 0293061 commit 9133b94
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 63 deletions.
22 changes: 11 additions & 11 deletions ietf/templates/doc/document_charter.html
Expand Up @@ -27,11 +27,11 @@
</tr>
</thead>

<tbody>
<tbody class="meta">

<tr>
<th>Document</th>
<th class="text-right">
<th>
{% if doc.get_state_slug != "approved" %}
Proposed charter
{% else %}
Expand All @@ -49,7 +49,7 @@
</td>
</tr>

<tr class="plain">
<tr>
<td></td>
<th>Title</th>
<td class="edit">
Expand All @@ -60,14 +60,14 @@
<td>{{ doc.title }}</td>
</tr>

<tr class="plain">
<tr>
<td></td>
<th>Last updated</th>
<td class="edit"></td>
<td>{{ doc.time|date:"Y-m-d" }}</td>
</tr>

<tr class="plain">
<tr>
<td></td>
<th><a href="/doc/help/state/charter/">State</a></th>
<td class="edit">
Expand All @@ -89,19 +89,19 @@

</tbody>

<tbody>
<tbody class="meta">
<tr>
<th>WG</th>
<th class="text-right">State</th>
<th>State</th>
<td class="edit"></td>
<td>{{ group.state.name }}</td>
</tr>
</tbody>

<tbody>
<tbody class="meta">
<tr>
<th>IESG</th>
<th class="text-right">Responsible AD</th>
<th>Responsible AD</th>
<td class="edit">
{% if can_manage %}
{% doc_edit_button "charter_edit_ad" name=doc.name %}
Expand All @@ -113,7 +113,7 @@
</tr>

{% if not snapshot and chartering %}
<tr class="plain">
<tr>
<td></td>
<th>Telechat date</th>
<td class="edit">
Expand All @@ -135,7 +135,7 @@
</tr>
{% endif %}

<tr class="plain">
<tr>
<td></td>
<th>Send notices to</th>
<td class="edit">
Expand Down
16 changes: 8 additions & 8 deletions ietf/templates/doc/document_conflict_review.html
Expand Up @@ -23,10 +23,10 @@
</tr>
</thead>

<tbody>
<tbody class="meta">
<tr>
<th>Document</th>
<th class="text-right">
<th>
{% if doc.get_state_slug not in approved_states %}
Proposed conflict review
{% else %}
Expand All @@ -46,14 +46,14 @@
</td>
</tr>

<tr class="plain">
<tr>
<td></td>
<th>Last updated</th>
<td class="edit"></td>
<td>{{ doc.time|date:"Y-m-d" }}</td>
</tr>

<tr class="plain">
<tr>
<td></td>
<th><a href="/doc/help/state/conflict-review/">State</a></th>
<td class="edit">
Expand All @@ -67,10 +67,10 @@
</tr>

</tbody>
<tbody>
<tbody class="meta">
<tr>
<th>IESG</th>
<th class="text-right">Shepherding AD</th>
<th>Shepherding AD</th>
<td class="edit">
{% if not snapshot and user|has_role:"Area Director,Secretariat" and doc.get_state_slug not in approved_states %}
<a class="btn btn-default btn-xs pull-right" href="{% url "conflict_review_ad" name=doc.name %}">Edit</a>
Expand All @@ -82,7 +82,7 @@
</tr>

{% if not snapshot %}
<tr class="plain">
<tr>
<td></td>
<th>Telechat date</th>
<td class="edit">
Expand All @@ -105,7 +105,7 @@
</tr>
{% endif %}

<tr class="plain">
<tr>
<td></td>
<th>Send notices to</th>
<td class="edit">
Expand Down
42 changes: 21 additions & 21 deletions ietf/templates/doc/document_draft.html
Expand Up @@ -38,7 +38,7 @@
</tr>
</thead>

<tbody>
<tbody class="meta">
<tr>
<th>Document</th>
<th>Type</th>
Expand All @@ -64,7 +64,7 @@
</tr>

<tr>
<th class="plain"></th>
<th></th>
<th>Last updated</th>
<td class="edit"></td>
<td>
Expand All @@ -77,7 +77,7 @@

{% if replaces or can_edit_stream_info %}
<tr>
<th class="plain"></th>
<th></th>
<th>Replaces</th>
<td class="edit">
{% if can_edit_stream_info %}
Expand All @@ -92,7 +92,7 @@

{% if replaced_by %}
<tr>
<th class="plain"></th>
<th></th>
<th>Replaced by</th>
<td class="edit"></td>
<td>
Expand Down Expand Up @@ -132,7 +132,7 @@
{% endif %}

<tr>
<th class="plain"></th>
<th></th>
<th>Stream</th>
<td class="edit">
{% if can_change_stream %}
Expand All @@ -146,7 +146,7 @@

{% if doc.get_state_slug != "rfc" %}
<tr>
<th class="plain"></th>
<th></th>
<th>Intended RFC status</th>
<td class="edit">
{% if can_edit or can_edit_stream_info %}
Expand All @@ -160,7 +160,7 @@
{% endif %}

<tr>
<th class="plain"></th>
<th></th>
<th>Formats</th>
<td class="edit"></td>
<td>
Expand All @@ -179,15 +179,15 @@

{% if conflict_reviews %}
<tr>
<th class="plain"></th>
<th></th>
<th>IETF conflict review</th>
<td class="edit"></td>
<td>{{ conflict_reviews|join:", "|urlize_ietf_docs }}</td>
</tr>
{% endif %}

</tbody>
<tbody>
<tbody class="meta">
<tr>
<th>Stream</th>
{% if doc.stream %}
Expand Down Expand Up @@ -225,7 +225,7 @@

{% if consensus %}
<tr>
<th class="plain"></th>
<th></th>
<th>Consensus</th>
<td class="edit">
{% if can_edit or can_edit_stream_info %}
Expand All @@ -239,7 +239,7 @@
{% endif %}

<tr>
<th class="plain"></th>
<th></th>
<th>Document shepherd</th>
<td class="edit">
{% if can_edit_stream_info %}
Expand All @@ -255,7 +255,7 @@

{% if shepherd_writeup or can_edit_shepherd_writeup %}
<tr>
<th class="plain"></th>
<th></th>
<th>Shepherd write-up</th>
<td class="edit">
{% if can_edit_shepherd_writeup %}
Expand All @@ -278,13 +278,13 @@

{% if published and started_iesg_process and published.time < started_iesg_process.time %}
<tr>
<th class="plain"></th>
<th></th>
<th colspan="3" class="warning">This information refers to IESG processing after the RFC was initially published:</th>
</tr>
{% endif %}

</tbody>
<tbody>
<tbody class="meta">
<tr>
<th>IESG</th>
<th><a href="{% url "ietf.help.views.state" doc=doc.type.slug type="iesg" %}">IESG state</a></th>
Expand All @@ -299,7 +299,7 @@
</tr>

<tr>
<th class="plain"></th>
<th></th>
<th>Telechat date</th>
<td class="edit">
{% if can_edit %}
Expand All @@ -325,7 +325,7 @@
</tr>

<tr>
<th class="plain"></th>
<th></th>
<th>Responsible AD</th>
<td class="edit">
{% if can_edit %}
Expand All @@ -340,7 +340,7 @@
{% if iesg_state %}
{% if doc.note or can_edit %}
<tr>
<th class="plain"></th>
<th></th>
<th>IESG note</th>
<td class="edit">
{% if can_edit %}
Expand All @@ -355,7 +355,7 @@
{% endif %}

<tr>
<th class="plain"></th>
<th></th>
<th>Send notices to</th>
<td class="edit">
{% if can_edit_notify %}
Expand All @@ -370,7 +370,7 @@
</tbody>

{% if iana_review_state %}
<tbody>
<tbody class="meta">
<tr>
<th>IANA</th>
<th><a href="{% url "ietf.help.views.state" doc=doc.type.slug type="iana-review" %}">IANA review state</a></th>
Expand All @@ -385,7 +385,7 @@
</tr>

<tr>
<th class="plain"></th>
<th></th>
<th>IANA action state</th>
<td class="edit">
{% if can_edit_iana_state %}
Expand All @@ -399,7 +399,7 @@
</tbody>
{% endif %}

<tbody>
<tbody class="meta">
{% if rfc_editor_state %}
<tr>
<th>RFC Editor</th>
Expand Down

0 comments on commit 9133b94

Please sign in to comment.