<!-- Channel content -->
<div class="content">
  {% for Profile in Content %}
  <script type="text/javascript">
    var Post{{ Profile.id }} = new APost({{ Profile.id }});
  </script>
  <!-- Begin post {{ Profile.id }} ----------------------------------------- -->
  <div class="post" id="post_{{ Profile.id }}">
    <table class="post_bounds" id="post_{{ Profile.id }}$bounds">
      <tr>
        <td class="post_title" id="post_{{ Profile.id }}$title">{{ Profile.userName }}</td>
        <td valign="top" id="post_{{ Profile.id }}$icon" rowspan="3">
          {% if Profile.icon %}
            <img class="post_icon" src="{{ Script.path(Profile.icon) }}" alt="User icon" />
          {% else %}
            <img class="post_icon" src="{{ Script.path(Channel.icon) }}" alt="Icon" />
          {% endif %}
        </td>
      </tr>
      <tr>
        <td class="post_header" id="post_{{ Profile.id }}$header">
          {{ Profile.fullName }}
        </td>
      </tr>
      <tr>
        <td class="post_content" id="post_{{ Profile.id }}$content">
        {% if Profile.content %}
          {{ Profile.parsedContent() }}
        {% else %}
          {{ Profile.description }}
        {% endif %}
        </td>
      </tr>
      <tr>
        <td>
          <table class="post_attributes">
          {% if Profile.email %}
            <tr>
              <td class="field_name">E-mail:</td>
              <td><a href="{{ String.obfuscate('mailto:' + Profile.email) }}" title="Send e-mail to this user">{{ String.obfuscate(Profile.email) }}</a></td>
            </tr>
          {% endif %}
          {% if Profile.website %}
            <tr>
              <td class="field_name">Website:</td>
              <td><a href="{{ Profile.website }}" title="Visit this user's website">{{ Profile.website }}</a></td>
            </tr>
          {% endif %}
            <tr>
              <td class="field_name">User since:</td>
              <td>{{ Time.localString(Profile.created) }}</td>
            </tr>
            <tr>
              <td class="field_name">Posts authored:</td>
              <td>{{ User.postsAuthored(Profile.userName) }}</td>
            </tr>
            <tr>
              <td class="field_name">Posts edited:</td>
              <td>{{ User.postsEdited(Profile.userName) }}</td>
            </tr>
            <tr>
              <td class="field_name">Last visit:</td>
              <td>{{ Time.localString(Profile.lastVisit) }}</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </div>
    <!-- End post {{ Profile.id }} ------------------------------------------- -->
  {% else %}
  <div class="post">
    <table class="post_bounds">
      <tr>
        <td>There is nothing to display in this view.</td>
      </tr>
    </table>
  </div>
  {% endfor %}
</div>
