Sha256: f4aa0664ff253856b4d08062c3bcd8abd6383137ffeafc58f80123303cffd2b0
Contents?: true
Size: 839 Bytes
Versions: 10
Compression:
Stored size: 839 Bytes
Contents
class ViewWithCache < Garterbelt::View needs :user def content cache "user_#{user.id}" do 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 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 li :class => 'last' do a "logout", :href => "/logout", :title => "Get out of here!", :class => 'logout_link' end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems