Author: nextgens
Date: 2006-05-23 14:22:11 +0000 (Tue, 23 May 2006)
New Revision: 8836
Modified:
trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
trunk/freenet/src/freenet/clients/http/PageMaker.java
trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css
Log:
Small improvment of the ConfigToadlet
Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2006-05-23
06:20:38 UTC (rev 8835)
+++ trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2006-05-23
14:22:11 UTC (rev 8836)
@@ -132,30 +132,33 @@
for(int j=0; j<o.length; j++){
String configName = o[j].getName();
- /*
- if(prefix.equals("node") &&
configName.equals("name")){
- buf.append("<form
method=\"post\"><input alt=\"node name\" class=\"config\"" +
- " type=\"text\"
name=\"__node_name\" value=\""+o[j].getValueString()+"\"/></form>\n");
- }
- */
buf.append("<li>");
//
buf.append("<span class=\"configshortdesc\">");
buf.append(o[j].getShortDesc());
+ buf.append("</span>");
+ buf.append("<span class=\"config\">");
+ //
+ if(o[j].getValueString().equals("true") ||
o[j].getValueString().equals("false")){
+ buf.append("<select
name=\""+sc[i].getPrefix()+"."+configName+"\" >");
+
if(o[j].getValueString().equals("true")){
+ buf.append("<option
value=\"true\" selected>true</option>");
+ buf.append("<option
value=\"false\">false</option>");
+ }else{
+ buf.append("<option
value=\"true\">true</option>");
+ buf.append("<option
value=\"false\" selected>false</option>");
+ }
+ buf.append("</select>");
+ }else{
+ buf.append("<input
alt=\""+o[j].getShortDesc()+"\" class=\"config\"" +
+ " type=\"text\"
name=\""+sc[i].getPrefix()+"."+configName+"\"
value=\""+HTMLEncoder.encode(o[j].getValueString())+"\" />");
+ }
buf.append("</span>");
- //
buf.append("<span class=\"configlongdesc\">");
buf.append(o[j].getLongDesc());
buf.append("</span>");
- //
- buf.append("<span class=\"configkey\">");
- buf.append(configName);
- buf.append(" = </span>");
- //
- buf.append("<input
alt=\""+o[j].getShortDesc()+"\" class=\"config\"" +
- " type=\"text\"
name=\""+sc[i].getPrefix()+"."+configName+"\"
value=\""+HTMLEncoder.encode(o[j].getValueString())+"\" />");
- //
+
buf.append("</li>\n");
}
Modified: trunk/freenet/src/freenet/clients/http/PageMaker.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PageMaker.java 2006-05-23
06:20:38 UTC (rev 8835)
+++ trunk/freenet/src/freenet/clients/http/PageMaker.java 2006-05-23
14:22:11 UTC (rev 8836)
@@ -35,11 +35,12 @@
public void makeBackLink(StringBuffer buf, ToadletContext ctx){
// My browser sends it with one 'r'
- String ref = (String)ctx.getHeaders().get("Referer");
+ String ref = (String)ctx.getHeaders().get("referer");
if(ref!=null)
buf.append("<br><a href=\""+ref+"\" title=\"Back\"
Back</a>\n");
else
buf.append("<br><a href=\"javascript:back()\"
title=\"Back\">Back</a>\n");
+
}
public void makeTopHead(StringBuffer buf) {
Modified:
trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css
===================================================================
--- trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css
2006-05-23 06:20:38 UTC (rev 8835)
+++ trunk/freenet/src/freenet/clients/http/staticfiles/themes/clean/theme.css
2006-05-23 14:22:11 UTC (rev 8836)
@@ -1,394 +1,395 @@
-/* overall settings */
-
-p, span, div, td, th, li, h1, h2, h3, h4, h5 {
- font-family: Arial;
- font-weight: normal;
- font-size: 11pt;
-}
-
-table {
- border-collapse: collapse;
-}
-
-th {
- font-weight: bold;
- background-color: #e8e8e8;
-}
-
-th, td {
- margin: 0;
- padding: 5px;
- border: 1px solid #d0d0d0;
-}
-
-pre, textarea {
- font-family: Courier;
- font-weight: normal;
- font-size: 8pt;
-}
-
-pre#reference {
- overflow:auto;
-}
-
-table, pre {
- margin: 0 0 5px 0;
- padding: 0;
-}
-
-form {
- margin: 0;
- padding: 0;
-}
-
-/* body and page header */
-
-body {
- margin: 0;
- padding: 0;
- background-color: #f0f0f0;
-}
-
-#page {
-}
-
-/* page's topbar */
-
-#topbar {
- margin: 0;
- padding: 5px;
- min-height: 50px;
- background-color: #e8e8e8;
- background-image: url(logo.png);
- background-repeat: no-repeat;
- background-position: 30px 3px;
- border-bottom: 1px solid #d0d0d0;
-}
-
-#topbar h1 {
- margin: 0;
- padding: 7px 0 0 0;
- text-align: center;
- font-size: 20pt;
-}
-
-/* navigation */
-
-#navbar {
- margin: 5px 5px 0 0;
- padding: 10px;
- position: absolute;
- width: 150px;
- background-color: #e8e8e8;
- border: 1px solid #d0d0d0;
-}
-
-#navbar ul {
- margin: 0 0 0 30px;
- padding: 0;
-}
-
-#navbar li {
- margin: 0;
- padding: 0;
- list-style-type: none;
-}
-
-#navbar a {
- color: #000000;
- text-decoration: none;
-}
-
-#navbar a:hover {
- color: #ff0000;
-}
-
-/* alerts */
-
-.alert-error {
- color: darkred;
-}
-
-.alert-warning {
- color: blue;
-}
-
-.alert-minor {
- color: green;
-}
-
-/* infoboxes */
-
-div.infobox {
- margin: 0 0 5px 0;
- padding: 10px;
- background-color: #f0f0f0;
- border: 1px solid #d0d0d0;
-}
-
-div.infobox div.infobox-header {
- margin: -10px -10px 10px -10px;
- padding: 10px 35px 10px 10px;
- border-bottom: 1px dotted #a0a0a0;
- font-weight: bold;
- font-size: 11pt;
- background-color: #e8e8e8;
- background-repeat: no-repeat;
- background-position: right;
-}
-
-div.infobox-information div.infobox-header {
- background-color: #e8e8f0;
- background-image: url(information.gif);
-}
-
-div.infobox-warning div.infobox-header {
- background-color: #f8f8c0;
- background-image: url(warning.gif);
-}
-
-div.infobox-alert {
- background-color: #f0e8e8;
-}
-
-div.infobox-alert div.infobox-header {
- background-color: #ffd0d0;
- background-image: url(alert.gif);
-}
-
-div.infobox-error {
- background-color: #f0e8e8;
-}
-
-div.infobox-error div.infobox-header {
- background-color: #ffd0d0;
- background-image: url(error.gif);
-}
-
-div.infobox-query div.infobox-header {
- background-color: #f0f0e8;
- background-image: url(query.gif);
-}
-
-div.infobox-success div.infobox-header {
- background-color: #e8f0e8;
- background-image: url(success.gif);
-}
-
-/* content */
-
-#content {
- margin: 5px 5px 5px 0;
- padding: 0;
- position: absolute;
- left: 177px;
-}
-
-a {
- color: #000000;
-}
-
-a:hover {
- color: #ff0000;
-}
-
-.interfacelink {
- color: #000000;
- text-decoration: underline;
-}
-
-#activity {
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-/* plugins page */
-
-table.plugins th, table.plugins td {
- font-size: 8pt;
-}
-
-table.plugins span {
- font-weight: bold;
- font-size: 8pt;
-}
-
-table.plugins form {
- display: inline;
-}
-
-/* configuration page */
-
-ul.config {
- margin: 0 0 5px 0;
- padding: 0;
- border: 1px solid #d0d0d0;
-}
-
-ul.config li {
- margin: 0;
- padding: 15px;
- max-width: 600px;
- list-style: none;
- text-align: right;
-}
-
-ul.config span.configprefix {
- margin: 0 0 0 15px;
- font-weight: bold;
- font-size: 16pt;
- font-variant: small-caps;
-}
-
-ul.config span.configshortdesc {
- display: block;
- text-align: left;
- font-weight: bold;
-}
-
-ul.config span.configlongdesc {
- display: block;
- text-align: left;
-}
-
-ul.config input[type=text] {
- width: 300px;
-}
-
-/* darknet page */
-
-table.darknet_connections th, table.darknet_connections td {
- font-size: 8pt;
-}
-
-table.darknet_connections span {
- font-weight: bold;
- font-size: 8pt;
-}
-
-table.darknet_connections span.peer_connected {
- color: #008000;
-}
-
-table.darknet_connections span.peer_backedoff {
- color: #ff0000;
-}
-
-table.darknet_connections span.peer_too_new {
- color: #d0a0a0;
-}
-
-table.darknet_connections span.peer_incompatible {
- color: #d0a0d0;
-}
-
-table.darknet_connections span.peer_disconnected {
- color: #d0d0d0;
-}
-
-table.darknet_connections span.peer_version_problem {
- color: #d07070;
-}
-
-tr.messagetypes {
- text-align: center;
-}
-
-table.sentmessagetypes {
- display: inline;
-}
-
-table.receivedmessagetypes {
- display: inline;
-}
-
-table.sentmessagetypes th, table.sentmessagetypes td,
table.receivedmessagetypes th, table.receivedmessagetypes td {
- font-size: 7pt;
-}
-
-/* queue page */
-
-table.queue th, table.queue td {
- font-size: 8pt;
-}
-
-div.queue_tabletitle {
- margin: 0;
- padding: 10px 0 10px 0;
- font-size: 10pt;
-}
-
-table.queue span {
- font-size: 8pt;
-}
-
-table.queue span.failure_reason_unknown {
- color: #d0d0d0;
-}
-
-table.queue span.failure_reason_is {
-}
-
-table.queue span.progress_fraction_unknown {
- color: #d0d0d0;
-}
-
-table.queue span.progress_fraction_not_finalized {
-}
-
-table.queue span.progress_fraction_finalized {
- color: #008000;
-}
-
-table.queue span.number_of_files {
-}
-
-table.queue span.number_of_files {
-}
-
-table.queue span.filename_direct {
- color: #d0d0d0;
-}
-
-table.queue span.filename_none {
- color: #d0d0d0;
-}
-
-table.queue span.filename_is {
-}
-
-table.queue span.identifier_with_uri {
-}
-
-table.queue span.persistence_none {
-}
-
-table.queue span.persistence_reboot {
- color: #0000ff;
-}
-
-table.queue span.persistence_forever {
- color: #00b000;
-}
-
-table.queue span.mimetype_unknown {
- color: #d0d0d0;
-}
-
-table.queue span.mimetype_is {
-}
-
-table.queue span.filesize_unknown {
- color: #d0d0d0;
-}
-
-table.queue span.filesize_is {
-}
-
-table.queue span.key_unknown {
- color: #d0d0d0;
-}
-
-table.queue span.key_is {
-}
+/* overall settings */
+
+p, span, div, td, th, li, h1, h2, h3, h4, h5 {
+ font-family: Arial;
+ font-weight: normal;
+ font-size: 11pt;
+}
+
+table {
+ border-collapse: collapse;
+}
+
+th {
+ font-weight: bold;
+ background-color: #e8e8e8;
+}
+
+th, td {
+ margin: 0;
+ padding: 5px;
+ border: 1px solid #d0d0d0;
+}
+
+pre, textarea {
+ font-family: Courier;
+ font-weight: normal;
+ font-size: 8pt;
+}
+
+pre#reference {
+ overflow:auto;
+}
+
+table, pre {
+ margin: 0 0 5px 0;
+ padding: 0;
+}
+
+form {
+ margin: 0;
+ padding: 0;
+}
+
+/* body and page header */
+
+body {
+ margin: 0;
+ padding: 0;
+ background-color: #f0f0f0;
+}
+
+#page {
+}
+
+/* page's topbar */
+
+#topbar {
+ margin: 0;
+ padding: 5px;
+ min-height: 50px;
+ background-color: #e8e8e8;
+ background-image: url(logo.png);
+ background-repeat: no-repeat;
+ background-position: 30px 3px;
+ border-bottom: 1px solid #d0d0d0;
+}
+
+#topbar h1 {
+ margin: 0;
+ padding: 7px 0 0 0;
+ text-align: center;
+ font-size: 20pt;
+}
+
+/* navigation */
+
+#navbar {
+ margin: 5px 5px 0 0;
+ padding: 10px;
+ position: absolute;
+ width: 150px;
+ background-color: #e8e8e8;
+ border: 1px solid #d0d0d0;
+}
+
+#navbar ul {
+ margin: 0 0 0 30px;
+ padding: 0;
+}
+
+#navbar li {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+}
+
+#navbar a {
+ color: #000000;
+ text-decoration: none;
+}
+
+#navbar a:hover {
+ color: #ff0000;
+}
+
+/* alerts */
+
+.alert-error {
+ color: darkred;
+}
+
+.alert-warning {
+ color: blue;
+}
+
+.alert-minor {
+ color: green;
+}
+
+/* infoboxes */
+
+div.infobox {
+ margin: 0 0 5px 0;
+ padding: 10px;
+ background-color: #f0f0f0;
+ border: 1px solid #d0d0d0;
+}
+
+div.infobox div.infobox-header {
+ margin: -10px -10px 10px -10px;
+ padding: 10px 35px 10px 10px;
+ border-bottom: 1px dotted #a0a0a0;
+ font-weight: bold;
+ font-size: 11pt;
+ background-color: #e8e8e8;
+ background-repeat: no-repeat;
+ background-position: right;
+}
+
+div.infobox-information div.infobox-header {
+ background-color: #e8e8f0;
+ background-image: url(information.gif);
+}
+
+div.infobox-warning div.infobox-header {
+ background-color: #f8f8c0;
+ background-image: url(warning.gif);
+}
+
+div.infobox-alert {
+ background-color: #f0e8e8;
+}
+
+div.infobox-alert div.infobox-header {
+ background-color: #ffd0d0;
+ background-image: url(alert.gif);
+}
+
+div.infobox-error {
+ background-color: #f0e8e8;
+}
+
+div.infobox-error div.infobox-header {
+ background-color: #ffd0d0;
+ background-image: url(error.gif);
+}
+
+div.infobox-query div.infobox-header {
+ background-color: #f0f0e8;
+ background-image: url(query.gif);
+}
+
+div.infobox-success div.infobox-header {
+ background-color: #e8f0e8;
+ background-image: url(success.gif);
+}
+
+/* content */
+
+#content {
+ margin: 5px 5px 5px 0;
+ padding: 0;
+ position: absolute;
+ left: 177px;
+}
+
+a {
+ color: #000000;
+}
+
+a:hover {
+ color: #ff0000;
+}
+
+.interfacelink {
+ color: #000000;
+ text-decoration: underline;
+}
+
+#activity {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+/* plugins page */
+
+table.plugins th, table.plugins td {
+ font-size: 8pt;
+}
+
+table.plugins span {
+ font-weight: bold;
+ font-size: 8pt;
+}
+
+table.plugins form {
+ display: inline;
+}
+
+/* configuration page */
+
+ul.config {
+ margin: 0 0 5px 0;
+ padding: 0;
+ border: 1px solid #d0d0d0;
+}
+
+ul.config li {
+ margin: 0;
+ padding: 15px;
+ max-width: 600px;
+ list-style: none;
+ text-align: left;
+}
+
+ul.config span.configprefix {
+ margin: 0 0 0 15px;
+ font-weight: bold;
+ font-size: 16pt;
+ font-variant: small-caps;
+}
+
+ul.config span.configshortdesc {
+ text-align: left;
+ font-weight: bold;
+ float: left;
+ width: 292px;
+}
+
+ul.config span.configlongdesc {
+ display: block;
+ text-align: left;
+}
+
+ul.config input[type=text] {
+ width: 300px;
+}
+
+/* darknet page */
+
+table.darknet_connections th, table.darknet_connections td {
+ font-size: 8pt;
+}
+
+table.darknet_connections span {
+ font-weight: bold;
+ font-size: 8pt;
+}
+
+table.darknet_connections span.peer_connected {
+ color: #008000;
+}
+
+table.darknet_connections span.peer_backedoff {
+ color: #ff0000;
+}
+
+table.darknet_connections span.peer_too_new {
+ color: #d0a0a0;
+}
+
+table.darknet_connections span.peer_incompatible {
+ color: #d0a0d0;
+}
+
+table.darknet_connections span.peer_disconnected {
+ color: #d0d0d0;
+}
+
+table.darknet_connections span.peer_version_problem {
+ color: #d07070;
+}
+
+tr.messagetypes {
+ text-align: center;
+}
+
+table.sentmessagetypes {
+ display: inline;
+}
+
+table.receivedmessagetypes {
+ display: inline;
+}
+
+table.sentmessagetypes th, table.sentmessagetypes td,
table.receivedmessagetypes th, table.receivedmessagetypes td {
+ font-size: 7pt;
+}
+
+/* queue page */
+
+table.queue th, table.queue td {
+ font-size: 8pt;
+}
+
+div.queue_tabletitle {
+ margin: 0;
+ padding: 10px 0 10px 0;
+ font-size: 10pt;
+}
+
+table.queue span {
+ font-size: 8pt;
+}
+
+table.queue span.failure_reason_unknown {
+ color: #d0d0d0;
+}
+
+table.queue span.failure_reason_is {
+}
+
+table.queue span.progress_fraction_unknown {
+ color: #d0d0d0;
+}
+
+table.queue span.progress_fraction_not_finalized {
+}
+
+table.queue span.progress_fraction_finalized {
+ color: #008000;
+}
+
+table.queue span.number_of_files {
+}
+
+table.queue span.number_of_files {
+}
+
+table.queue span.filename_direct {
+ color: #d0d0d0;
+}
+
+table.queue span.filename_none {
+ color: #d0d0d0;
+}
+
+table.queue span.filename_is {
+}
+
+table.queue span.identifier_with_uri {
+}
+
+table.queue span.persistence_none {
+}
+
+table.queue span.persistence_reboot {
+ color: #0000ff;
+}
+
+table.queue span.persistence_forever {
+ color: #00b000;
+}
+
+table.queue span.mimetype_unknown {
+ color: #d0d0d0;
+}
+
+table.queue span.mimetype_is {
+}
+
+table.queue span.filesize_unknown {
+ color: #d0d0d0;
+}
+
+table.queue span.filesize_is {
+}
+
+table.queue span.key_unknown {
+ color: #d0d0d0;
+}
+
+table.queue span.key_is {
+}