Browse Source

korrektur nachkomma abitur

burningTyger 7 years ago
parent
commit
a11bd6f62f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      views/asz_ahr.slim

+ 2 - 2
views/asz_ahr.slim

@@ -358,11 +358,11 @@ link href=url("/css/print_a3.css") rel="stylesheet" media="all"
                   |Durchschnittsnote
                 .col-xs-1
                   h4
-                    =>s.abi_abschluss.note+(",0" unless s.abi_abschluss.note.include?(","))
+                    =>s.abi_abschluss.note+(s.abi_abschluss.note.include?(",") ? "":",0")
                 .col-xs-3
                   |in Worten:
                   br/
-                  =>s.note_in_worten(s.abi_abschluss.note+(",0" unless s.abi_abschluss.note.include?(",")))
+                  =>s.note_in_worten(s.abi_abschluss.note+(s.abi_abschluss.note.include?(",") ? "":",0"))
           .row
             .col-xs-offset-1.col-xs-8
               .voffset-3