Skip to content

Commit

Permalink
Earlybirdoff (#74)
Browse files Browse the repository at this point in the history
* turn of early bird + no crash on showing sessions without speakers

* <-
  • Loading branch information
ceciliasharp authored Jun 14, 2024
1 parent b889e6e commit cc15e46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Pages/gbg-2024/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}

bool isCfpOpen = true; //New logic will be added on issue #178
bool earlyBirdAvailable = true;
bool earlyBirdAvailable = false;

int speakersLeft = conference.MinNumberOfSpeakers - conference.Speakers.Count;

Expand Down Expand Up @@ -426,7 +426,7 @@
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<ul class="sessions">
@foreach (var session in conference.Sessions.Where(s => s.Published).OrderBy(s => s.Priority).ThenBy(s => s.Name))
@foreach (var session in conference.Sessions.Where(s => s.Published && s.Speakers != null).OrderBy(s => s.Priority).ThenBy(s => s.Name))
{
var sessionSpeakers = session.Speakers;
<li>
Expand All @@ -438,7 +438,7 @@
speaker.SpeakerImages.FirstOrDefault(i => i.ImageType.Slug == "thumb")?.ImageUrl ?? "";
<li><img class="img-circle" src="@imageUrl" /><a href="/@slug/speakers/@speaker.Slug">@speaker.Name</a></li>
}
</ul>
</ul>
</li>
}
<li><p>More sessions will be published soon!</p></li>
Expand Down

0 comments on commit cc15e46

Please sign in to comment.