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
Refactor i18n files structure #40
Conversation
Deploy preview ready! Built with commit 3ebc28b |
@@ -17,7 +17,7 @@ html.no-js | |||
= partial "shared/content/_event_box.slim", | |||
locals: {locale: 'de', next_event: next_event, upcoming_events: upcoming_events} | |||
#event-data | |||
= partial "shared/content/_archive.slim", locals: {past_events: past_events, date_format: :day_month} | |||
= partial "shared/content/_archive.slim", locals: {past_events: past_events, locale: 'de', date_format: :day_month} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hash wants to breathe
-events_grouped_by_year = past_events.group_by{ |event| event.date[0,4] } | ||
-events_grouped_by_year.each do |year, events| | ||
.year-wrap | ||
h4 | ||
="#{year}" | ||
ul | ||
-events.each do |event| | ||
-events.reverse.each do |event| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write a spec for this bugfix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[bug] Write spec for month arrangement.
Change spec behaviour
Make Deutsch version is the default to be shown in index page