Sha256: a2e2f226209bb86897bf0bfb4ca766b3ef1d0e4ddf91730e3bb520e30f7994b6

Contents?: true

Size: 867 Bytes

Versions: 40

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

40 entries across 40 versions & 7 rubygems

Version Path
Pistos-ramaze-2008.09 examples/app/todolist/src/element/page.rb
Pistos-ramaze-2008.12 examples/app/todolist/src/element/page.rb
Pistos-ramaze-2009.01 examples/app/todolist/src/element/page.rb
Pistos-ramaze-2009.02 examples/app/todolist/src/element/page.rb
clivecrous-ramaze-0.3.9.5 examples/todolist/src/element/page.rb
manveru-ramaze-2008.07 examples/app/todolist/src/element/page.rb
manveru-ramaze-2008.08 examples/app/todolist/src/element/page.rb
manveru-ramaze-2008.09 examples/app/todolist/src/element/page.rb
manveru-ramaze-2008.10 examples/app/todolist/src/element/page.rb
manveru-ramaze-2008.12 examples/app/todolist/src/element/page.rb
manveru-ramaze-2009.01 examples/app/todolist/src/element/page.rb
ptomato-ramaze-2009.02.1 examples/app/todolist/src/element/page.rb
ptomato-ramaze-2009.02 examples/app/todolist/src/element/page.rb
starapor-slippers-0.0.0 examples/todolist/src/element/page.rb
starapor-slippers-0.0.1 examples/todolist/src/element/page.rb
starapor-slippers-0.0.2 examples/todolist/src/element/page.rb
starapor-slippers-0.0.3 examples/todolist/src/element/page.rb
starapor-slippers-0.0.5 examples/todolist/layout/page.rb
starapor-slippers-0.0.6 examples/todolist/layout/page.rb
starapor-slippers-0.0.8 examples/todolist/layout/page.rb