Class: ODDB::View::Drugs::RssFeedbackList

Inherits:
HtmlGrid::DivList
  • Object
show all
Defined in:
src/view/drugs/centeredsearchform.rb

Constant Summary

COMPONENTS =
{
  [0,0] => :heading,
}

Instance Method Summary (collapse)

Instance Method Details

- (Object) heading(model)



193
194
195
196
197
198
199
200
201
202
203
204
205
206
# File 'src/view/drugs/centeredsearchform.rb', line 193

def heading(model)
  if(parent = model.item)
    link = HtmlGrid::Link.new(:feedbacks, model, @session, self)
    link.href = @lookandfeel._event_url(:feedbacks, :pointer => parent.pointer)
    link.value = case parent.odba_instance
                 when ODDB::Package
                   @lookandfeel.lookup(:feedback_rss_title,
                                       parent.name, parent.size)
                 when ODDB::Migel::Product
                   parent.name
                 end
    link
  end
end