Permalink
Browse files

completeness

  • Loading branch information...
1 parent 48ab9f5 commit 57eddf246a8350a340e31b017fa473f7dc7b795d @wakaba wakaba committed Apr 16, 2014
Showing with 17 additions and 5 deletions.
  1. BIN images/sw.png
  2. +12 −0 lib/SWE/Web.pm
  3. +4 −4 styles/sw-classes.css
  4. +1 −1 styles/sw.css
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -70,6 +70,18 @@ sub process ($$) {
$app->http->close_response_body;
return $app->throw;
}
+ } elsif ($path->[0] eq 'images' and $path->[1] =~ /\A[a-z-]+\.(png)\z/ and
+ not defined $app->path_param and not defined $app->path_dollar) {
+ my $ext = $1;
+ my $file_path = $static_root_path->child ('images', $path->[1]);
+ if ($file_path->is_file) {
+ $app->http->add_response_header
+ ('Content-Type' => {png => 'image/png'}->{$ext});
+ $app->http->set_response_last_modified ($file_path->stat->mtime);
+ $app->http->send_response_body_as_ref (\($file_path->slurp));
+ $app->http->close_response_body;
+ return $app->throw;
+ }
}
}
@@ -14,11 +14,11 @@ pre.aafig {
}
.hw {
- -moz-binding: url(/www/style/text/width.xbl#halfwidth);
+ -moz-binding: url(//suika.suikawiki.org/www/style/text/width.xbl#halfwidth);
}
.fw {
- -moz-binding: url(/www/style/text/width.xbl#fullwidth);
+ -moz-binding: url(//suika.suikawiki.org/www/style/text/width.xbl#fullwidth);
}
/* Code fragments */
@@ -143,9 +143,9 @@ pre.continue.deprecated.example:before {
/*
Partially taken from
-<http://suika.fam.cx/~wakaba/wiki/sw/n/Wiki++Style++SuikaWiki++HTML++Semantic>.
+<http://suika.suikawiki.org/~wakaba/wiki/sw/n/Wiki++Style++SuikaWiki++HTML++Semantic>.
-Copyright 2002-2008 Authors.
+Copyright 2002-2014 Authors.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
View
@@ -64,7 +64,7 @@ h1, h2, h3, h4, h5, h6 {
}
h1 {
- background-image: url(//suika.suikawiki.org/~wakaba/-temp/2004/sw) /* 107x59 */;
+ background-image: url(../images/sw.png) /* 107x59 */;
background-position: middle left;
background-repeat: no-repeat;
padding-left: 120px;

0 comments on commit 57eddf2

Please sign in to comment.