3
def guide(name, url, options = {}, &block)
4
link = content_tag(:a, :href => url) { name }
5
result = content_tag(:dt, link)
7
if ticket = options[:ticket]
8
result << content_tag(:dd, lh(ticket), :class => 'ticket')
11
result << content_tag(:dd, capture(&block))
15
def lh(id, label = "Lighthouse Ticket")
16
url = "http://rails.lighthouseapp.com/projects/16213/tickets/#{id}"
17
content_tag(:a, label, :href => url)
20
def author(name, nick, image = 'credits_pic_blank.gif', &block)
21
image = "images/#{image}"
23
result = content_tag(:img, nil, :src => image, :class => 'left pic', :alt => name)
24
result << content_tag(:h3, name)
25
result << content_tag(:p, capture(&block))
26
concat content_tag(:div, result, :class => 'clearfix', :id => nick)