Sha256: 82c86363b69bd38fff9aa2fc0163e32770047ddf66f238f45676df45a2e1725e

Contents?: true

Size: 784 Bytes

Versions: 2

Compression:

Stored size: 784 Bytes

Contents

<Page title="Ramaze Blog">
  <?r if @entries.empty? ?>
    <p>No Entries</p>
  <?r end ?>
  <?r @entries.each_with_index do |entry, i| ?>
    <div class="blog_entry">
      <div class="title">
        <div class="title">#{link self, :view, entry.oid, :title => entry.title}</div>
        <div class="date">#{entry.time}</div>
      </div>
      <div class="text">
        #{BlueCloth.new(entry.text.to_s).to_html}
      </div>
      <div class="menu">
        <?r if logged_in? ?>
          #{link self, :delete, entry.eid, :title => 'Delete'}
          #{link self, :edit, entry.eid, :title => 'Edit'}<br />
        <?r end ?>
        Entry #{@entries.size - i}/#{@entries.size}
      </div>
    </div>
  <?r end ?>
  #{link(self, :new, :title => 'New Entry') if logged_in?}
</Page>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-0.0.8 examples/blog/template/index.xhtml
ramaze-0.0.9 examples/blog/template/index.xhtml