feat: Add Announcements link to nomcom home page (#7053)
* feat: Add Announcements link to nomcom home page * refactor: Move announcements link to top of page, outside nomcom_content * refactor: Don't code URL path into template
This commit is contained in:
parent
ce1571ee68
commit
01a071962d
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
||||
{# Copyright The IETF Trust 2015-2024, All Rights Reserved #}
|
||||
{% load origin static %}
|
||||
{% load nomcom_tags %}
|
||||
{% load ietf_filters %}
|
||||
|
@ -12,6 +12,7 @@
|
|||
{% endblock %}
|
||||
{% block content %}
|
||||
{% origin %}
|
||||
{% block nomcom_announce %}{% endblock %}
|
||||
{% with selected=request.path|split:'/'|slice:'3:-1'|join:'-' %}
|
||||
<h1>
|
||||
NomCom {{ year }}
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
{% extends "nomcom/nomcom_public_base.html" %}
|
||||
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
||||
{# Copyright The IETF Trust 2015-2024, All Rights Reserved #}
|
||||
{% load origin %}
|
||||
{% block subtitle %}- Home{% endblock %}
|
||||
{% block nomcom_announce %}
|
||||
<p class="alert alert-info my-3">
|
||||
Announcements from this nomcom are available
|
||||
<a href="{% url "ietf.nomcom.views.announcements" %}#nomcom-{{year}}">here</a>
|
||||
</p>
|
||||
{% endblock %}
|
||||
{% block nomcom_content %}
|
||||
{% origin %}
|
||||
<!-- [html-validate-disable-block heading-level -- FIXME: old HTML in the database] -->
|
||||
|
|
Loading…
Reference in a new issue