Sha256: 4583283b91e8a3893be31fd0ec5e89d9f46aa53364437ced9ae9437f151990b8
Contents?: true
Size: 873 Bytes
Versions: 10
Compression:
Stored size: 873 Bytes
Contents
class ViewWithPartial2 < Garterbelt::View needs :user def content div :class => "user_status" do ul do if user.upgradeable? li do a 'upgrade', :href => "#", :class => 'upgrade_link' end else li "pro", :class => 'pro', :title => "You're a real pro." end li do partial SettingLink2.new(:user => user) end li :class => 'last' do a "logout", :href => "/logout", :title => "Get out of here!", :class => 'logout_link' end end end end end class SettingLink2 < Garterbelt::View needs :user def content a 'settings', :href => "/user/#{user.id}?selected=settings", :id => "settings_link", :title => "Reset your name or password, upload your photo, or adjust your email notifications" end end
Version data entries
10 entries across 10 versions & 1 rubygems