aboutsummaryrefslogtreecommitdiff
path: root/atom.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-18 08:52:02 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-18 08:52:02 +0200
commit451383433d842f4a6734573a37aaf9098dd245c7 (patch)
tree5c0f3fab84181c700cdebffe8b6251ec030bf033 /atom.rb
parente8a6206719edc70b0ce7257da5b34471f7f8e71f (diff)
complete change of configuration
Diffstat (limited to 'atom.rb')
-rwxr-xr-xatom.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/atom.rb b/atom.rb
index 901fb9c..bb7c542 100755
--- a/atom.rb
+++ b/atom.rb
@@ -44,14 +44,14 @@ feed.title = poll.name
feed.id = "urn:dudle:#{poll.class}:#{poll.name}"
feed.updated = File.new("data.yaml").mtime
feed.authors << Atom::Person.new(:name => 'dudle automatic notificator')
-feed.links << Atom::Link.new(:href => SITEURL + "atom.cgi", :rel => "self")
+feed.links << Atom::Link.new(:href => $conf.siteurl + "atom.cgi", :rel => "self")
log = VCS.history
log.reverse_each {|l|
feed.entries << Atom::Entry.new do |e|
e.title = l.comment
-# e.content = Atom::Content::Xhtml.new("<p><a href=\"#{SITEURL}history.cgi?revision=#{l.rev}\">permalink</a>, <a href='#{SITEURL}' >current version</a></p>")
- e.links << Atom::Link.new(:href => "#{SITEURL}history.cgi?revision=#{l.rev}")
+# e.content = Atom::Content::Xhtml.new("<p><a href=\"#{$conf.siteurl}history.cgi?revision=#{l.rev}\">permalink</a>, <a href='#{$conf.siteurl}' >current version</a></p>")
+ e.links << Atom::Link.new(:href => "#{$conf.siteurl}history.cgi?revision=#{l.rev}")
e.id = "urn:#{poll.class}:#{poll.name}:rev=#{l.rev}"
e.updated = l.timestamp
end