Sha256: 0b195a28e247749ad30c2448c899950627594c9b309110a020a67bde8a3ffdfa
Contents?: true
Size: 914 Bytes
Versions: 7
Compression:
Stored size: 914 Bytes
Contents
class GarterbeltTemplate < Garterbelt::View needs :user, :flash => nil def content html do head do page_title "Benchmarking Templates" _link :rel => 'stylesheet', :href => '/stylesheet/application.css' _link :rel => 'stylesheet', :href => '/stylesheet/ie.css' end body :class => self.class.to_s.underscore do div :id => :wrapper, :class => 'line' do if flash div :id => 'flash', :class => 'inner' do text flash end end dl :class => ['inner', 'user_info'] do dt 'username' dd user.username dt 'email' dd user.email dt 'name' dd user.name dt 'number of assigned tasks' dd rand(20) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems