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:
Paul Selkirk 2024-02-28 09:54:08 -05:00 committed by GitHub
parent ce1571ee68
commit 01a071962d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #} {# Copyright The IETF Trust 2015-2024, All Rights Reserved #}
{% load origin static %} {% load origin static %}
{% load nomcom_tags %} {% load nomcom_tags %}
{% load ietf_filters %} {% load ietf_filters %}
@ -12,6 +12,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% origin %} {% origin %}
{% block nomcom_announce %}{% endblock %}
{% with selected=request.path|split:'/'|slice:'3:-1'|join:'-' %} {% with selected=request.path|split:'/'|slice:'3:-1'|join:'-' %}
<h1> <h1>
NomCom {{ year }} NomCom {{ year }}

View file

@ -1,7 +1,13 @@
{% extends "nomcom/nomcom_public_base.html" %} {% 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 %} {% load origin %}
{% block subtitle %}- Home{% endblock %} {% 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 %} {% block nomcom_content %}
{% origin %} {% origin %}
<!-- [html-validate-disable-block heading-level -- FIXME: old HTML in the database] --> <!-- [html-validate-disable-block heading-level -- FIXME: old HTML in the database] -->