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
starapor-slippers-0.0.9 examples/todolist/layout/page.rb
slippers-0.0.14 examples/todolist/layout/page.rb
slippers-0.0.13 examples/todolist/layout/page.rb
slippers-0.0.12 examples/todolist/layout/page.rb
slippers-0.0.11 examples/todolist/layout/page.rb
slippers-0.0.10 examples/todolist/layout/page.rb
ramaze-0.1.2 examples/todolist/src/element/page.rb
ramaze-0.1.4 examples/todolist/src/element/page.rb
ramaze-0.1.3 examples/todolist/src/element/page.rb
ramaze-0.3.5 examples/todolist/src/element/page.rb
ramaze-0.3.0 examples/todolist/src/element/page.rb
ramaze-0.2.0 examples/todolist/src/element/page.rb
ramaze-0.2.1 examples/todolist/src/element/page.rb
ramaze-0.3.9 examples/todolist/src/element/page.rb
ramaze-2008.06 examples/app/todolist/src/element/page.rb
ramaze-0.3.9.1 examples/todolist/src/element/page.rb
ramaze-2009.01 examples/app/todolist/src/element/page.rb
ramaze-2008.11 examples/app/todolist/src/element/page.rb
ramaze-2009.02 examples/app/todolist/src/element/page.rb
ramaze-2009.03 examples/app/todolist/src/element/page.rb