aboutsummaryrefslogtreecommitdiff
path: root/customize.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 16:28:40 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 16:28:40 +0100
commitd5c5f1816037817117ed759d1954bf17780122cb (patch)
tree690132da3983dd2abe7e6494be83de1feb80fcd7 /customize.rb
parent00183811523468d9571d9da34bbe1356528dacae (diff)
fix charset settings
Diffstat (limited to 'customize.rb')
-rwxr-xr-xcustomize.rb23
1 files changed, 19 insertions, 4 deletions
diff --git a/customize.rb b/customize.rb
index d881965..a976452 100755
--- a/customize.rb
+++ b/customize.rb
@@ -40,10 +40,25 @@ $html << "<h1>Customize Personal Settings</h1>"
$html << <<CHARSET
<div id='charset'>
<h2>Charset</h2>
-<ul>
-<li><a href='?utf' style='text-decoration:none'>If you see all these characters: #{UTFCHARS} you can safely change the charset to UTF-8</a></li>
-<li><a href='?ascii' style='text-decoration:none'>Change Charset to plain ASCII</a></li>
-</ul>
+<table>
+ <tr>
+ <th>Current Setting</th>
+ <th>Description</th>
+ </tr>
+CHARSET
+[["Use special characters (#{UTFCHARS})","utf"],
+ ["Use normal strings","ascii"]].each{|description,href|
+ selected = href == (USEUTF ? "utf" : "ascii")
+ $html << "<tr><td>"
+ $html << "X" if selected
+ $html << "</td><td>"
+ $html << "<a href='?#{href}'>" unless selected
+ $html << description
+ $html << "</a>" unless selected
+ $html << "</td></tr>"
+ }
+$html << <<CHARSET
+</table>
</div>
CHARSET