diff options
-rw-r--r-- | README | 2 | ||||
-rwxr-xr-x | index.cgi | 7 | ||||
-rwxr-xr-x | participate.rb | 6 |
3 files changed, 10 insertions, 5 deletions
@@ -1,7 +1,7 @@ Author: Benjamin Kellermann <Benjamin dot Kellermann at tu-dresden in germany> Requirements: - * ruby, ruby-atom + * ruby * bzr License: CC-by-sa 3.0 @@ -35,10 +35,11 @@ $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="alternate" type="application/atom+xml" href="atom.cgi" /> -</head> -<body> HEAD + + $htmlout += '<link rel="alternate" type="application/atom+xml" href="atom.cgi" />' if File.exists?("atom.cgi") + + $htmlout += "</head><body>" if $cgi.include?("create_poll") SITE=$cgi["create_poll"] diff --git a/participate.rb b/participate.rb index e9f5e82..8acd9f1 100755 --- a/participate.rb +++ b/participate.rb @@ -62,7 +62,11 @@ $htmlout += <<HEAD <link rel="stylesheet" type="text/css" href="../dudle.css" title="default"/> <link rel="stylesheet" type="text/css" href="../print.css" title="print" media="print" /> <link rel="stylesheet" type="text/css" href="../print.css" title="print" /> - <link rel="alternate" type="application/atom+xml" href="atom.cgi" /> +HEAD + +$htmlout += '<link rel="alternate" type="application/atom+xml" href="atom.cgi" />' if File.exists?("../atom_single.rb") + +$htmlout += <<HEAD </head> <body> <div> |