blob: 812892d682657c6f1d40cb1b4d469c48aa07c9cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
puts "Loading BandHelper..."
module BandHelper
def bandlinks_all
"#{link('Exeloume', 'http://www.facebook.com/exeloume')}, " +
"#{link('Imbalance', 'http://www.imbalance.no')} og " +
"#{link('Ninth Circle', 'http://www.ninthcircle.no')}"
end
def tourdate(date, venue, town, comments = "")
rendered_date = tag "span", :class => "date" do
date
end
rendered_venue = tag "span", :class => "venue" do
venue
end
rendered_town = tag "span", :class => "town" do
town
end
output = "#{rendered_date}: #{rendered_venue}, #{rendered_town}"
unless comments.empty?
rendered_comments = tag "span", :class => "comments" do
"(#{comments})"
end
output += " #{rendered_comments}"
end
tag "li", :class => "tour_entry" do
output
end
end
end
|