-
Notifications
You must be signed in to change notification settings - Fork 378
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
Conversation
There was a problem hiding this 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 %} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No preference.
There was a problem hiding this 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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<a href="/nomcom/ann/#nomcom-{{year}}">here</a> | |
<a href="{% url "ietf.nomcom.views.announcements" %}#nomcom-{{year}}">here</a> |
Fixes #6886