Skip to content

Commit

Permalink
Fix: Check if open time should be shown
Browse files Browse the repository at this point in the history
Fix: I18n linter
  • Loading branch information
TobiasDeBruijn committed Jul 23, 2024
1 parent 7080164 commit 532886e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/members/activities/partials/_view.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
\-
= activity.end_time.strftime("%H:%M")
<br/>
- if activity.open_date != nil && activity.open_date > Date.today
- if activity.open_date != nil && !activity.open?
%strong= I18n.t("activerecord.labels.activities.opens_at")
= l(activity.open_date, format: "%A %d/%m/%Y")
- if !activity.open_time.nil?
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ en:
labels:
activities:
date: Date
opens_at: Signup from
time: Time
when: When
opens_at: Signup from
messages:
member:
confirmation_sent: 'A confirmation mail is send to '
Expand Down
2 changes: 1 addition & 1 deletion config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ nl:
labels:
activities:
date: Datum
opens_at: Inschrijfbaar vanaf
time: Tijd
when: Wanneer
opens_at: Inschrijfbaar vanaf
messages:
member:
confirmation_sent: 'Een bevestigingsmail is verstuurd naar '
Expand Down

0 comments on commit 532886e

Please sign in to comment.