# HG changeset patch # User devi # Date 1138431625 -7200 # Node ID 8c3d80c4891be0f9512548b352319bc01eff2747 # Parent 70db89d4f840e84a75c20e491a9af94cd266c972 Правильное написание глагола "прошло"; фиксированные размеры таблиц diff -r 70db89d4f840 -r 8c3d80c4891b l3-frontend --- a/l3-frontend Fri Jan 27 19:47:23 2006 +0200 +++ b/l3-frontend Sat Jan 28 09:00:25 2006 +0200 @@ -50,6 +50,8 @@ init_variables(); init_config(); + $Config{frontend_ico_path}=$Config{frontend_css}; + $Config{frontend_ico_path}=~s@/[^/]*$@@; open_mywi_socket(); load_command_lines_from_xml($Config{"backend_datafile"}); @@ -550,9 +552,9 @@ my $table_caption = "Таблица ".$table_number++.". ".$Day_Name[$last_wday].". Новые ".$new_entries_of{$entry_class}; if ($new_commands_section) { - $result .= "" + $result .= "
" . "" - . "" + . "" . $new_commands_section . "
$table_caption
КомандаОписание
КомандаОписание
" } @@ -574,6 +576,8 @@ my $minutes_passed = int($seconds_since_last_command/60); + my $passed_word = $minutes_passed % 10 == 1 ? "прошла" + : "прошло"; my $minutes_word = $minutes_passed % 100 > 10 && $minutes_passed % 100 < 20 ? "минут" : $minutes_passed % 10 == 1 ? "минута": @@ -584,7 +588,7 @@ $this_day_result .= "" . "" . "" - . "прошло ".$minutes_passed." ".$minutes_word + . $passed_word." ".$minutes_passed." ".$minutes_word . "" . "\n"; } @@ -609,18 +613,18 @@ : ""; # CLASS - if ($cl->{"err"}) { - $this_day_result .= "" - . "
" - . "E" - . "
" - . ""; - } - else { - $this_day_result .= "" - . " " - . ""; - } +# if ($cl->{"err"}) { +# $this_day_result .= "" +# . "
" +# . "E" +# . "
" +# . ""; +# } +# else { +# $this_day_result .= "" +# . " " +# . ""; +# } # COMMAND my $hint = make_comment($cl->{"cline"}); @@ -633,7 +637,9 @@ $cline = "$cline" if !$hint; $this_day_result .= "\n"; - $this_day_result .= "
\n" . $cline . "
\n"; + $this_day_result .= "
\n" . $cline ;
+        $this_day_result .= " " if $cl->{"err"};
+        $this_day_result .= "
\n"; # OUTPUT my $last_command = $cl->{"last_command"}; @@ -694,7 +700,7 @@ if ($new_commands_section) { $result .= "" . "" - . "" + . "" . $new_commands_section . "
$table_caption
КомандаОписание
КомандаОписание
" ;