|
| 1 | +{% extends "base.html" %} |
| 2 | +{# Copyright The IETF Trust 2015, All Rights Reserved #} |
| 3 | +{% load origin staticfiles %} |
| 4 | + |
| 5 | +{% load ballot_icon %} |
| 6 | +{% load ietf_filters %} |
| 7 | + |
| 8 | +{% block pagehead %} |
| 9 | +<link rel="stylesheet" href="{% static "jquery.tablesorter/css/theme.bootstrap.min.css" %}"> |
| 10 | +{% endblock %} |
| 11 | + |
| 12 | +{% block title %}Documents on recent agendas{% endblock %} |
| 13 | + |
| 14 | +{% block content %} |
| 15 | + {% origin %} |
| 16 | + <h1>Documents on recent agendas <small>in states {% for state in states %}{{state.name}}{% if not forloop.last %}, {% endif %} {% endfor %}</small></h1> |
| 17 | + |
| 18 | + <ul class="nav nav-tabs" role="tablist"> |
| 19 | + <li class=" "><a href="{% url 'ietf.iesg.views.agenda' %}">IESG Agenda</a></li> |
| 20 | + <li class=" "><a href="{% url 'ietf.iesg.views.agenda_documents' %}">Documents on future agendas</a></li> |
| 21 | + <li class=" "><a href="{% url 'ietf.iesg.views.discusses' %}">DISCUSS positions</a></li> |
| 22 | + <li class="active"><a href="{% url 'ietf.iesg.views.past_documents' %}">Documents on recent agendas</a></li> |
| 23 | + <li class=" "><a href="{% url 'ietf.iesg.views.photos' %}">IESG Photos</a></li> |
| 24 | + </ul> |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + <!-- |
| 29 | + {% if user|has_role:"Area Director" %} |
| 30 | + <p class="btn-group" data-toggle="buttons"> |
| 31 | + <label class="btn btn-default active discuss"> |
| 32 | + <input type="radio" value="all">All |
| 33 | + </label> |
| 34 | + <label class="btn btn-default discuss"> |
| 35 | + <input type="radio" value="byme">By me |
| 36 | + </label> |
| 37 | + <label class="btn btn-default discuss"> |
| 38 | + <input type="radio" value="forme">For me |
| 39 | + </label> |
| 40 | + </p> |
| 41 | + {% endif %} |
| 42 | + --> |
| 43 | + <table class="table table-condensed table-striped tablesorter"> |
| 44 | + <thead> |
| 45 | + <tr> |
| 46 | + <th class="col-md-4">Document</th> |
| 47 | + <th>Telechat Date</th> |
| 48 | + <th>Status</th> |
| 49 | + <th>Responsible AD</th> |
| 50 | + <th>Discusses</th> |
| 51 | + </tr> |
| 52 | + </thead> |
| 53 | + |
| 54 | + <tbody> |
| 55 | + {% for doc in docs %} |
| 56 | + <tr class="{% if doc.by_me %}byme{% endif %} {% if doc.for_me %}forme{% endif %}"> |
| 57 | + <td> |
| 58 | + {{ doc.displayname_with_link }} |
| 59 | + <br> |
| 60 | + {{ doc.title }} |
| 61 | + </td> |
| 62 | + <td> |
| 63 | + {{ doc.telechat }} |
| 64 | + </td> |
| 65 | + {% include "doc/search/status_columns.html" %} |
| 66 | + <td>{{ doc.ad|default:"" }}</td> |
| 67 | + <td> |
| 68 | + {% for p in doc.blocking_positions %} |
| 69 | + {% if p.old_ad %} |
| 70 | + <span class="text-muted"> |
| 71 | + {% endif %} |
| 72 | + {{ p.ad }} |
| 73 | + ({% if p.discuss_time %}{{ p.discuss_time|timesince_days }}{% endif %} |
| 74 | + days ago{% if doc.get_state_url != "rfc" and p.rev != doc.rev %} |
| 75 | + for -{{ p.rev }}{% endif %})<br> |
| 76 | + {% if p.old_ad %} |
| 77 | + </span> |
| 78 | + {% endif %} |
| 79 | + {% endfor %} |
| 80 | + </td> |
| 81 | + </tr> |
| 82 | + {% endfor %} |
| 83 | + </tbody> |
| 84 | + </table> |
| 85 | +{% endblock %} |
| 86 | + |
| 87 | +{% block js %} |
| 88 | + <script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script> |
| 89 | + <script> |
| 90 | + $(".discuss").click(function () { |
| 91 | + var x = $(this).find("input").val(); |
| 92 | + if (x === "all") { |
| 93 | + $("tbody tr").removeClass("hidden"); |
| 94 | + } else { |
| 95 | + $("tbody tr." + x).removeClass("hidden"); |
| 96 | + $("tbody tr:not(." + x + ")").addClass("hidden"); |
| 97 | + } |
| 98 | + }); |
| 99 | + </script> |
| 100 | +{% endblock %} |
| 101 | + |
0 commit comments