Skip to content

feat: Add Announcements link to nomcom home page - #7053

Merged
rjsparks merged 3 commits into
ietf-tools:mainfrom
pselkirk:fix-6886
Feb 28, 2024
Merged

feat: Add Announcements link to nomcom home page#7053
rjsparks merged 3 commits into
ietf-tools:mainfrom
pselkirk:fix-6886

Conversation

@pselkirk

Copy link
Copy Markdown
Contributor

Fixes #6886

@rjsparks rjsparks left a comment

Copy link
Copy Markdown
Member

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.

Comment thread ietf/templates/nomcom/year_index.html Outdated
{% origin %}
<!-- [html-validate-disable-block heading-level -- FIXME: old HTML in the database] -->
{{ template|safe }}
{% if nomcom.ann_url %}

@rjsparks rjsparks Feb 13, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No preference.

@rjsparks rjsparks left a comment

Copy link
Copy Markdown
Member

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.

Comment thread ietf/templates/nomcom/year_index.html Outdated
{% 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
Copy Markdown
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
@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