my $resume_url="/resume/ResumeJanKratochvil.pm/ResumeJanKratochvil.html";
+sub vskip_hr($) { return "<hr />\n".My::Web::vskip("1ex"); }
+
# Only to be used privately by My::Web !
our %WebConfig=(
"admin_mail"=>'web-www.jankratochvil.net@jankratochvil.net',
.'<tr>'."\n";
my @sections=(
"/project/"=>"Projects",
+ "/product/"=>"Products",
"http://cvs.jankratochvil.net/"=>"CVS",
# "/News.pm"=>"News",
$resume_url=>"Resume",
while (@sections) {
my $section_path=shift @sections;
my $section_name=shift @sections;
+ my $class="";
+ if ($section_path=~m{^/(.*)$}) {
+ $class=$1;
+ $class=~s{/}{::}g;
+ $class=~s{[.]pm$}{};
+ }
+ my $chosen=($class && $My::Web::W->{"__PACKAGE__"}=~/^\Q$class\E/);
$r.='<td style="padding: 5px;">';
$r.=(($My::Web::W->{"section"} || "") eq $section_name ? "<b>$section_name</b>"
: My::Web::a_href($section_path,$section_name,
- "attr"=>'style="text-decoration: inherit; /* revoke underline */;"'));
+ "attr"=>($chosen
+ ? 'style="text-decoration: underline; font-weight: bold;"'
+ : 'style="text-decoration: inherit; /* revoke underline */"')));
$r.="</td>\n";
}
-# FIXME: Catch the bug.
-if ($r=~/resumejankratochvil.pm/) {
- use Carp qw(confess cluck);
- cluck "LOWERCASED; resume_url=$resume_url";
- }
$r.='</tr></table>'."\n";
$r.='</td>'."\n";
$r.='</tr></table>'."\n";
if (!$My::Web::W->{"heading_novskip"}) {
- $r.="<hr />\n";
- $r.=My::Web::vskip("6ex");
+ $r.=WebConfig->vskip_hr();
}
return $r;
},
"footing_delimit_sub_push"=>sub () {
return if $My::Web::W->{"no_job"};
print <<"HERE";
-<table border="0" style="margin: 4ex; padding: 2ex; background: #552222; color: white;">
+<table border="0" style="padding: 2ex; background: #552222; color: white;" class="margin-center">
<tr><td>
<b>Contractor - Software Engineer:</b>
Please check if your planned project