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

Check if next_event is present #65

Open
Plsr opened this issue Feb 21, 2017 · 0 comments
Open

Check if next_event is present #65

Plsr opened this issue Feb 21, 2017 · 0 comments

Comments

@Plsr
Copy link
Collaborator

Plsr commented Feb 21, 2017

If there are no upcoming events (like today, last Webmontag was yesterday, no upcoming events are registered), there are some errors with the next_event object.

This affects two files:

  • shared/content/_event_box.slim:
.event-box-inner
  h3
    =I18n.t('events.next.title', locale: locale)
  .event-date
      a href="events/#{next_event.date}"
.event-attend-buttons
    a.button.default href=next_event.facebook_url
      |Über eventbrite anmelden
  • shared/index/_intro.slim:
h2
    = next_event.name

For no, I just checked for presence on every occurrence, maybe we should do that somewhat prettier.

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

No branches or pull requests

1 participant