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