diff --git a/ietf/templates/doc/document_material.html b/ietf/templates/doc/document_material.html index d1b87c340..0b7b070f9 100644 --- a/ietf/templates/doc/document_material.html +++ b/ietf/templates/doc/document_material.html @@ -22,7 +22,12 @@ Title: - {{ doc.title }} + {% if not snapshot and can_manage_material %} + {% url "material_edit" name=doc.name action="title" as editurl %} + {{ doc.title | format_editable:editurl }} + {% else %} + {{ doc.title }} + {% endif %} @@ -43,7 +48,12 @@ State: - {{ doc.get_state.name }} + {% if not snapshot and can_manage_material %} + {% url "material_edit" name=doc.name action="state" as editurl %} + {{ doc.get_state.name | format_editable:editurl }} + {% else %} + {{ doc.get_state.name }} + {% endif %} @@ -65,9 +75,9 @@ {% if presentations %} {% for pres in presentations %}{{pres.session.short_name}} at {{pres.session.meeting}} {% if pres.rev != doc.rev %}(version -{{pres.rev}}){% endif %}{% if not forloop.last %}, {% endif %}{% endfor %} - {% else %} + {% else %} None - {% endif %} + {% endif %}