X-Git-Url: https://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=blobdiff_plain;f=WebConfig.pm;h=d4ef2b0d8dc988c912fd3269335648a044343d9a;hp=4939e464259a56d5d9995892b4a21fb9190298da;hb=47c2190aed17bcfcc541290f91b4763baff9749d;hpb=e84932dd7c5d1488c746407f8375aa7b3b4947ab
diff --git a/WebConfig.pm b/WebConfig.pm
index 4939e46..d4ef2b0 100644
--- a/WebConfig.pm
+++ b/WebConfig.pm
@@ -36,6 +36,8 @@ use My::Web;
my $resume_url="/resume/ResumeJanKratochvil.pm/ResumeJanKratochvil.html";
+sub vskip_hr($) { return "
\n".My::Web::vskip("1ex"); }
+
# Only to be used privately by My::Web !
our %WebConfig=(
"admin_mail"=>'web-www.jankratochvil.net@jankratochvil.net',
@@ -75,6 +77,7 @@ our %WebConfig=(
.''."\n";
my @sections=(
"/project/"=>"Projects",
+ "/product/"=>"Products",
"http://cvs.jankratochvil.net/"=>"CVS",
# "/News.pm"=>"News",
$resume_url=>"Resume",
@@ -83,23 +86,26 @@ our %WebConfig=(
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.='';
$r.=(($My::Web::W->{"section"} || "") eq $section_name ? "$section_name"
: 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.=" | \n";
}
-# FIXME: Catch the bug.
-if ($r=~/resumejankratochvil.pm/) {
- use Carp qw(confess cluck);
- cluck "LOWERCASED; resume_url=$resume_url";
- }
$r.='
'."\n";
$r.=''."\n";
$r.=''."\n";
if (!$My::Web::W->{"heading_novskip"}) {
- $r.="
\n";
- $r.=My::Web::vskip("6ex");
+ $r.=WebConfig->vskip_hr();
}
return $r;
},
@@ -107,7 +113,7 @@ if ($r=~/resumejankratochvil.pm/) {
"footing_delimit_sub_push"=>sub () {
return if $My::Web::W->{"no_job"};
print <<"HERE";
-
+
Contractor - Software Engineer:
Please check if your planned project
@@ -116,7 +122,7 @@ if ($r=~/resumejankratochvil.pm/) {
|
HERE
},
- "no_job"=>0,
+ "no_job"=>1,
"css_inherit"=>1,
);