  {% for Post in Content %}
  <!-- Begin post {{ Post.id }} ----------------------------------------- -->
  <div class="post" id="post_{{ Post.id }}">
    <script type="text/javascript">
      var Post{{ Post.id }} = new APost({{ Post.id }});
    </script>
    <table class="post_bounds" id="post_{{ Post.id }}$bounds">
      <tr>
        <td class="post_title" id="post_{{ Post.id }}$title">{{ Post.title }}</td>
        <td valign="top" id="post_{{ Post.id }}$icon" rowspan="3">
          <a href="{{ Site.url(channel='$site/user/profile', title=Post.author) }}"
               title="View profile for {{ Post.author }}"><img class="post_icon" src="{{ Script.path(Post.icon) }}" alt="Post icon" /></a>
        </td>
      </tr>
      <tr>
        <td class="post_header" id="post_{{ Post.id }}$header">
          <strong>created</strong> on {{ Time.localString(Post.created) }} (GMT {{ Time.zoneOffset() }}) by <a href="{{ Site.url(channel='$site/user/profile', title=Post.author) }}" title="View profile for {{ Post.author }}">{{ Post.author }}</a><br />        
          <strong>edited</strong> on {{ Time.localString(Post.published) }} (GMT {{ Time.zoneOffset() }}) by <a href="{{ Site.url(channel='$site/user/profile', title=Post.editor) }}" title="View profile for {{ Post.editor }}">{{ Post.editor }}</a>
        </td>
      </tr>
      <tr>
        <td class="post_footer">
        <a href="#$special/end" title="Go to the end of the post">Go to end</a>
        {% if Post.keywords %}
          |
          <a href="#$special/keywords" title="View tags for this post">View tags</a>
        {% endif %}
        {% if User.has(Right.toEdit, Channel.name) %}
          | 
          <a href="{{ Site.url(channel='$site/posts/edit', view='post/edit', id=Post.id) }}" title="Edit this post">Edit this post</a>
        {% endif %}
        {% if User.has(Right.toDelete, Channel.name) %}
          |
          <a href="javascript:Post{{ Post.id }}.delete('{{ Site.url(channel='$site/posts/edit') }}', 'view={{ View.name }}')" title="Delete this post">Delete this post</a>
        {% endif %}
        </td>
      </tr>
      <tr>
        <td id="post_{{ Post.id }}$content" class="post_content">
          <a id="$special/beginning"></a>
          {{ Post.parsedContent() }}
          <a id="$special/end"></a>
        </td>
      </tr>
      <tr>
        <td class="post_footer">
          <a href="#$special/beginning" title="Go to the beginning of the post">Go to beginning</a>
        </td>
      </tr>
    {% if Post.keywords %}
      <tr>
        <td>
          <a id="$special/keywords" href="javascript:void(0)" title="Hide this section" onclick="Post{{ Post.id }}.toggleDisplayOf('keywords', this);"><code>-</code> Tags for this post</a>
          <div class="quote" id="post_{{ Post.id }}$keywords">
            <table class="post_attributes">
              <tr>
                <td>
                {%- for keyword in Post.keywords -%}
                  {%- if loop.index0 > 0 -%}
                    ,
                  {%- endif %}
                  <a href="{{ Site.url(channel='search', view='site/search/posts/results', title=keyword, what='tags') }}" title="Search for other posts that are tagged with &quot;{{ keyword }}&quot;">{{- keyword -}}</a>
                {%- endfor -%}
                </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    {% endif %}
    </table>
  </div>
    <!-- End post {{ Post.id }} ------------------------------------------- -->
  {% else %}
  <div class="post">
    <table class="post_bounds">
      <tr>
        <td>There is nothing to display in this view.</td>
      </tr>
    </table>
  </div>
  {% endfor %}

