diff --git a/app/views/pages/home/_all_courses.html.haml b/app/views/pages/home/_all_courses.html.haml index 5153d86..ebb3ab8 100644 --- a/app/views/pages/home/_all_courses.html.haml +++ b/app/views/pages/home/_all_courses.html.haml @@ -27,11 +27,11 @@ %td.time - if course.start_time = l(course.start_time, - format: '%H:%M') + format: :clock_wordless) = "-" - if course.end_time = l(course.end_time, - format: '%H:%M') + format: :clock_wordless) %td.style = link_to course.style do = course.style.name diff --git a/app/views/styles/_courses.html.haml b/app/views/styles/_courses.html.haml index ead8d41..66bd29b 100644 --- a/app/views/styles/_courses.html.haml +++ b/app/views/styles/_courses.html.haml @@ -15,11 +15,11 @@ %td.time - if course.start_time = l(course.start_time, - format: '%H:%m') + format: :clock_wordless) = "-" - if course.end_time = l(course.end_time, - format: '%M:%m') + format: :clock_wordless) %td.place = course.place.name %i diff --git a/config/locales/datetime.de.yml b/config/locales/datetime.de.yml index 9774af8..7fb8a51 100644 --- a/config/locales/datetime.de.yml +++ b/config/locales/datetime.de.yml @@ -45,6 +45,7 @@ de: other: "%{count} Jahren" time: formats: + clock_wordless: '%H:%M' devise: mailer: invitation_instructions: