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

talks: configure maximum number of talk authors to list explicitly #729

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

terceiro
Copy link
Contributor

I have been using wafer instances for single-track events, where there is plenty of space in the schedule to just list all authors. This will let me configure my instances to list a higher number than 2.

I have been using wafer instances for single-track events, where there
is plenty of space in the schedule to just list all authors. This will
let me configure my instances to list a higher number than 2.
@@ -283,7 +283,7 @@ def get_authors_display_name(self):
key=lambda author: u'' if author == self.corresponding_author
else author.userprofile.display_name())
names = [author.userprofile.display_name() for author in authors]
if len(names) <= 2:
if len(names) <= settings.WAFER_SCHEDULE_MAX_AUTHORS:
return u' & '.join(names)
Copy link
Member

Choose a reason for hiding this comment

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

As a future improvement, it would be nice to tweak the formatting here for more than two names so it returns
Author A, Author B, Author C & Author D
instead of
Author A & Author B & Author C & Author D

@drnlm drnlm merged commit 9ee67a9 into CTPUG:master Nov 27, 2024
41 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants