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

Event List View: Option to show No votes #135

Open
github-actions bot opened this issue Feb 29, 2024 · 0 comments
Open

Event List View: Option to show No votes #135

github-actions bot opened this issue Feb 29, 2024 · 0 comments
Labels
todo Todo command inside code

Comments

@github-actions
Copy link

github-actions bot commented Feb 29, 2024

Or make it dependent on the maxEventParticipants poll setting.

TODO Maybe add an option to show No votes as well.

@for (event of pollEvents; track event._id) {
  <h5>
    {{ event.start | date:'fullDate' }} at {{ event.start | date:'shortTime' }} - {{ event.end | date:'shortTime' }}
    @if (event.note) {
      <i class="bi-sticky-fill text-secondary" ngbTooltip="{{event.note}}" placement="top"></i>
    }
    <span
      [class]="bestOption === event.participants ? 'bi-award text-primary' : 'bi-person-check text-primary-emphasis'"
      [ngbTooltip]="bestOption === event.participants ? 'Best Option' : 'Sum'"
    >
      {{ event.participants }}
    </span>
  </h5>
  <ul class="list-unstyled">
    @for (participant of participants; track participant._id) {
      <li>
        @switch (participant.selection[event._id]) {
          @case ('yes') {
            <span class="p-yes bi-check-lg me-2" ngbTooltip="Yes"></span>
            <apollusia-participant-info [participant]="participant"></apollusia-participant-info>
          }
          @case ('maybe') {
            <span class="p-maybe bi-question me-2" ngbTooltip="Maybe"></span>
            <apollusia-participant-info [participant]="participant"></apollusia-participant-info>
          }
          <!--
          TODO Maybe add an option to show No votes as well.
               Or make it dependent on the maxEventParticipants poll setting.
          @case ('no') {
            <span class="p-no bi-x-lg" ngbTooltip="No"></span>
          }
          @default {
            <span class="p-unset bi-question" ngbTooltip="Unspecified"></span>
          }
          -->
        }
      </li>
    }
  </ul>
}
@github-actions github-actions bot added the todo Todo command inside code label Feb 29, 2024
@Clashsoft Clashsoft changed the title Maybe add an option to show No votes as well. Event List View: Option to show No votes Feb 29, 2024
@Clashsoft Clashsoft removed their assignment Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo Todo command inside code
Projects
None yet
Development

No branches or pull requests

1 participant