Skip to content

Commit

Permalink
feat: Add Announcements link to nomcom home page (#7053)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
pselkirk committed Feb 28, 2024
1 parent ce1571e commit 01a0719
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ietf/templates/nomcom/nomcom_public_base.html
@@ -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 %}
Expand All @@ -12,6 +12,7 @@
{% endblock %}
{% block content %}
{% origin %}
{% block nomcom_announce %}{% endblock %}
{% with selected=request.path|split:'/'|slice:'3:-1'|join:'-' %}
<h1>
NomCom {{ year }}
Expand Down
8 changes: 7 additions & 1 deletion ietf/templates/nomcom/year_index.html
@@ -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] -->
Expand Down

0 comments on commit 01a0719

Please sign in to comment.