@tiddler = Tiddler.new(:id => 0, :title => "${title}", :content => "Loading")

# XXX: Is it possible to rewrite the following with
# render :partial => "tiddler"'?
# It seems impossible to inherit the @tiddler variable...

div.tiddler(:id => "${element_id}", :style => "display: none") do
  form(:action => "") do
    div.toolbar do
      a.button(:href => 'javascript:;', :onclick => "alert('close')") { "close" }
    end
    div(:class => "title color_${color}") do
      span { "${title}" }
    end
    div.subtitle {}
    div.viewer do
      div do
        img :class => "loading", :src => "/images/spinner.gif", :alt => "..."
        span.loading { _("loading") }
      end
    end
  end
end
