yab / templates / view.html

{% extends "base.html" %}

{% block title %}
  {{ blog_post.title }}
{% endblock %}

{% block content %}

<div class="large">
  <a href="/post/{{ blog_post.key.id }}/{{ blog_post.uri }}">
    {{ blog_post.title }} 
  </a>
</div>

{{ blog_post.content_html }}
    
<div class="quiet small">
  {% if blog_post.tags %}
    tags:
    {% for tag in blog_post.tags %}
      <a href="/tag/{{ blog_post.tag }}">{{ tag }}</a>
    {% endfor %}
  {% endif %}
</div>

<div>
  created: {{ blog_post.created|date:"Y-m-d" }}
  {% if blog_post.updated %}
    | updated: {{ blog_post.updated|date:"Y-m-d" }}
  {% endif %}
</div>

<hr />
<br />

{% if comments %}
  <div>
    <strong>comments:</strong>
    {% for comment in comments %}
      <div>
        <span class="small quiet">
          on {{ comment.date|date:"Y-m-d" }} 
          {{ comment.author }} wrote:
        </span>
        {{ comment.content_html }}
      </div>
    {% endfor %}
  </div>
{% endif %}

    
<div>
{% if comments_open %}
    <form action="/post/{{ blog_post.key.id }}/{{ blog_post.uri }}" method="post">
    <fieldset>
    <legend><a href="#comment" name="comment">Add a comment</a></legend>
    <dl>
      <dt class="small quiet">
        (supports <a href="http://daringfireball.net/projects/markdown/syntax">Markdown</a>)
      </dt>
      <dt class="small quiet">
        <label for="author">Your name (required):</label>
      </dt>
      <dd>
        <input name="author" type="text" />
      </dd>
      <dt class="small quiet">
        <label for="author">Your comment:</label>
      </dt>
      <dd>
        <textarea name="comment_content" rows="5" cols="55"></textarea>
      </dd>
      <dt>
        <input type="submit" name="submit" value="Submit" />
      </dt>
    </dl>
    </fieldset>
    <dd>
        <input type="hidden" name="blog_key" value="{{ blog_post.key }}" />
    </dd>
    </form>
{% else %}
    <blockquote>Comments are now closed for this post.</blockquote>
{% endif %}
</div>

{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.