Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Announcements link to nomcom home page #7053

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

pselkirk
Copy link
Collaborator

Fixes #6886

Copy link
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor tweak requested. @richsalz Please comment.

{% load origin %}
{% block subtitle %}- Home{% endblock %}
{% block nomcom_content %}
{% origin %}
<!-- [html-validate-disable-block heading-level -- FIXME: old HTML in the database] -->
{{ template|safe }}
{% if nomcom.ann_url %}
Copy link
Member

@rjsparks rjsparks Feb 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably come before rendering the template, and it probably needs more dressing.
"Announcements from this nomcom are available <here>"
or something like it.
Maybe we need a block in the base template for it instead of intruding on the nomcom_content block.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No preference.

Copy link
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid coding URL paths into templates - use the {% url %} templetag instead.

{% block nomcom_announce %}
<p class="alert alert-info my-3">
Announcements from this nomcom are available
<a href="/nomcom/ann/#nomcom-{{year}}">here</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<a href="/nomcom/ann/#nomcom-{{year}}">here</a>
<a href="{% url "ietf.nomcom.views.announcements" %}#nomcom-{{year}}">here</a>

@rjsparks rjsparks merged commit 01a0719 into ietf-tools:main Feb 28, 2024
7 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it easier to find the announcements from a nomcom on that nomcom's main page
3 participants