Skip to content

fix: Add "simple" list of nomcom volunteers (#4732)#5412

Closed
richsalz wants to merge 5 commits intoietf-tools:mainfrom
richsalz:fix-4732
Closed

fix: Add "simple" list of nomcom volunteers (#4732)#5412
richsalz wants to merge 5 commits intoietf-tools:mainfrom
richsalz:fix-4732

Conversation

@richsalz
Copy link
Copy Markdown
Collaborator

For doing cut/paste to IETF announcements of the list of volunteers, it can be very convenient to just have a simple text list of name and affiliation. We implement this by adding a "mode" flag to the volunteer functions, and omitting columns in the template in non-full (i.e., simple) mode.

@richsalz
Copy link
Copy Markdown
Collaborator Author

I am not sure if it is better to have multiple {%if blocks in the template, or use two different templates which would then have to be kept in sync. Opinions?

Comment thread ietf/nomcom/views.py Outdated
Comment thread ietf/templates/nomcom/nomcom_public_base.html Outdated
</a>
</li>
<li class="dropdown-item">
<a href="{% url 'ietf.nomcom.views.private_volunteers' year "simple" %}">
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 is not doing what you intend, I think. There's nothing in the urls to reverse this to. If possible, lets talk about this in yokohama (I'm at the hackathon today).

@rjsparks
Copy link
Copy Markdown
Member

I am not sure if it is better to have multiple {%if blocks in the template, or use two different templates which would then have to be kept in sync. Opinions?

The general shape of where you're going reads well enough. The tradeoff of breaking this template into one big if/then or dispatching two two different templates is duplication of the presentation, making it more likely that edits take things out of sync.

Consider whether reordering columns so that the verbose columns were always rightmost would work - that would make the tradeoff easier to resolve.

@rjsparks rjsparks changed the base branch from feat/postgres to main April 13, 2023 21:22
richsalz added 5 commits May 3, 2023 13:50
For doing cut/paste to IETF announcements of the list of volunteers,
it can be very convenient to just have a simple text list of name and
affiliation. We implement this by adding a "mode" flag to the volunteer
functions, and omitting columns in the template in non-full (i.e.,
simple) mode.
Suggested by Robert; reduces the number of if/endif blocks.
It was on the function call, which was an off-by-one-line bug :)
It was on the function call, which was an off-by-one-line bug :)
@richsalz
Copy link
Copy Markdown
Collaborator Author

richsalz commented May 5, 2023

superceeded by #5578.

@richsalz richsalz closed this May 5, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 9, 2023
@richsalz richsalz deleted the fix-4732 branch July 22, 2023 16:30
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.

2 participants