X-Git-Url: https://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=blobdiff_plain;f=WebConfig.pm;h=514da5529940bdc777fe632683ce110206eb732d;hp=5160bd268936e767ad6926552cf94eee352f42a2;hb=886ab9c87febce040d1ccfb7b991212c49e2a080;hpb=de55841306665fcb733ed980d44034b2b8d1efd2 diff --git a/WebConfig.pm b/WebConfig.pm index 5160bd2..514da55 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', @@ -46,15 +48,18 @@ our %WebConfig=( || $name eq "lace"; return escapeHTML($name); }, - "viewcvs_My"=>"http://cvs.jankratochvil.net/viewcvs/MyWeb/", - "viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/www/www.jankratochvil.net/", +# "viewcvs_My"=>"http://cvs.jankratochvil.net/viewcvs/MyWeb/", +# "viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/www/www.jankratochvil.net/", + "viewcvs_My"=>"http://git.jankratochvil.net/?p=MyWeb.git;a=blob;hb=HEAD;f=", + "viewcvs"=>"http://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=blob;hb=HEAD;f=", "title_prefix"=>"Jan Kratochvil", - "project_viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/", - "pserver"=>':pserver:pserver:@cvs.jankratochvil.net', - "pserver_path"=>"/cvs", +# "project_viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/", + "project_viewcvs"=>"http://git.jankratochvil.net/", +# "pserver"=>':pserver:pserver:@cvs.jankratochvil.net', +# "pserver_path"=>"/cvs", "resume_url"=>$resume_url, - "mailman_url" =>sub { return "http://".$My::Web::W->{"web_hostname"}."/mailman/"; }, - "pipermail_url"=>sub { return "http://".$My::Web::W->{"web_hostname"}."/pipermail/"; }, +# "mailman_url" =>sub { return "http://".$My::Web::W->{"web_hostname"}."/mailman/"; }, +# "pipermail_url"=>sub { return "http://".("www2.jankratochvil.net"||$My::Web::W->{"web_hostname"})."/pipermail/"; }, "heading"=>sub () { my $r=""; $r.=''."\n"; @@ -75,7 +80,8 @@ our %WebConfig=( .''."\n"; my @sections=( "/project/"=>"Projects", - "http://cvs.jankratochvil.net/"=>"CVS", + "/product/"=>"Products", + "http://git.jankratochvil.net/"=>"GIT", # "/News.pm"=>"News", $resume_url=>"Resume", "/Contact.pm"=>"Contact", @@ -83,23 +89,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.='\n"; } -# FIXME: Catch the bug. -if ($r=~/resumejankratochvil.pm/) { - use Carp qw(confess cluck); - cluck "LOWERCASED; resume_url=$resume_url"; - } $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"; $r.=''."\n"; $r.=''."\n"; if (!$My::Web::W->{"heading_novskip"}) { - $r.="
\n"; - $r.=My::Web::vskip("6ex"); + $r.=WebConfig->vskip_hr(); } return $r; }, @@ -107,15 +116,11 @@ if ($r=~/resumejankratochvil.pm/) { "footing_delimit_sub_push"=>sub () { return if $My::Web::W->{"no_job"}; print <<"HERE"; - +
- A programmer for hire: - - I am looking for new challenges. - If you find the software here useful, please - @{[ My::Web::a_href($My::Web::W->{"resume_url"},'consider me') ]} - for your next software project. - + Contractor - Software Engineer: + Please check if your planned project + @{[ My::Web::a_href($My::Web::W->{"resume_url"},'matches my experience',"attr"=>'style="color: inherit;"') ]},
HERE