aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-08 00:25:16 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-08 00:25:16 +0200
commit0e2473120b6e636fc5a2dee14db21dab001eb0ec (patch)
treebb8ff92bdb054a57eb42adc4f2be9bfd27bd2734 /index.cgi
parentc40d983397b844cdc37cb039e64360952460e864 (diff)
css added to overviewpage
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.cgi b/index.cgi
index ccb6f7e..dba162d 100755
--- a/index.cgi
+++ b/index.cgi
@@ -41,11 +41,12 @@ $htmlout += <<HEAD
<title>dudle</title>
<meta http-equiv="Content-Type" content="#{TYPE}; charset=#{CHARSET}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
+ <link rel="stylesheet" type="text/css" href="dudle.css" title="default"/>
HEAD
$htmlout += '<link rel="alternate" type="application/atom+xml" href="atom.cgi" />' if File.exists?("atom.cgi")
- $htmlout += "</head><body>"
+ $htmlout += "</head><body><h1>dudle</h1>"
if $cgi.include?("create_poll")
SITE=$cgi["create_poll"].gsub(/^\//,"")
@@ -85,7 +86,7 @@ Dir.glob("*/data.yaml").sort_by{|f|
}.each{|site|
unless YAML::load_file("#{site}/data.yaml").hidden
$htmlout += "<tr>"
- $htmlout += "<td class='site'><a href='./#{CGI.escapeHTML(site).gsub("'","%27")}/'>#{CGI.escapeHTML(site)}</a></td>"
+ $htmlout += "<td class='polls'><a href='./#{CGI.escapeHTML(site).gsub("'","%27")}/'>#{CGI.escapeHTML(site)}</a></td>"
$htmlout += "<td class='mtime'>#{File.new(site + "/data.yaml").mtime.strftime('%d.%m, %H:%M')}</td>"
$htmlout += "</tr>"
end