Themes for HTTP Proxy error pages

This commit is contained in:
zzz
2009-07-16 19:11:58 +00:00
parent 0650137e32
commit 9bc4f6bacb
8 changed files with 12 additions and 6 deletions

View File

@ -831,6 +831,9 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
} catch (IOException ioe) {}
return;
}
// theme hack
if (filename.startsWith("themes/console/default/"))
filename = filename.replaceFirst("default", I2PAppContext.getGlobalContext().getProperty("routerconsole.theme", "light"));
File file = new File(_errorDir, filename);
if (file.exists() && !file.isDirectory()) {
String type;

View File

@ -1,3 +1,6 @@
2009-07-16 zzz
* HTTP Proxy: Themes for error pages
2009-07-16 sponge
* ministreaming:
- small pedantic fix

View File

@ -7,7 +7,7 @@ Proxy-Connection: close
<html><head>
<title>Destination key conflict</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico" />
<link href="http://proxy.i2p/themes/console/console.css" rel="stylesheet" type="text/css" />
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class=logo>

View File

@ -7,7 +7,7 @@ Proxy-Connection: close
<html><head>
<title>Eepsite not reachable</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico" />
<link href="http://proxy.i2p/themes/console/console.css" rel="stylesheet" type="text/css" />
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class=logo>

View File

@ -7,7 +7,7 @@ Proxy-Connection: close
<html><head>
<title>Invalid eepsite destination</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico" />
<link href="http://proxy.i2p/themes/console/console.css" rel="stylesheet" type="text/css" />
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class=logo>

View File

@ -7,7 +7,7 @@ Proxy-Connection: close
<html><head>
<title>Eepsite unknown</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico" />
<link href="http://proxy.i2p/themes/console/console.css" rel="stylesheet" type="text/css" />
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class=logo>

View File

@ -7,7 +7,7 @@ Proxy-Connection: close
<html><head>
<title>Outproxy Not Found</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico" />
<link href="http://proxy.i2p/themes/console/console.css" rel="stylesheet" type="text/css" />
<link href="http://proxy.i2p/themes/console/default/console.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class=logo>

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 13;
public final static long BUILD = 14;
/** for example "-test" */
public final static String EXTRA = "";
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;