Sha256: 8ee87a0312e2d066cd020a13fedd15dac947162107cd893cc535bfb9f54e6a88

Contents?: true

Size: 867 Bytes

Versions: 1

Compression:

Stored size: 867 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

class Page < Ezamar::Element
  def render
    %(
    <html>
      <head>
        <title>TodoList</title>
        <style>
          table     { width:       100%;              }
          tr        { background:  #efe; width: 100%; }
          tr:hover  { background:  #dfd;              }
          td.title  { font-weight: bold; width: 60%;  }
          td.status { margin:      1em;               }
          a         { color:       #3a3;              }
        </style>
      </head>
      <body>
        <h1>#{@title}</h1>
        <?r if flash[:error] ?>
          <div class="error">
            \#{flash[:error]}
          </div>
        <?r end ?>
        #{content}
      </body>
    </html>
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.1.1 examples/todolist/src/element/page.rb