27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/oddb/html/view/rss_preview.rb', line 27
def heading(model)
if(parent = model.item)
link = HtmlGrid::Link.new(:feedback, model, @session, self)
if code = parent.code(:cid)
link.href = @lookandfeel._event_url(:feedback, :pzn => parent.code(:cid))
link.value = @lookandfeel.lookup :feedback_preview,
parent.name.send(@session.language),
size(parent)
else
link.href = @lookandfeel._event_url(:feedback, :uid => parent.uid)
link.value = parent.name.send(@session.language)
end
link
end
end
|