diff options
-rw-r--r-- | project/templates/blog/post_detail.html | 77 | ||||
-rw-r--r-- | project/templates/blog/post_list.html | 35 |
2 files changed, 0 insertions, 112 deletions
diff --git a/project/templates/blog/post_detail.html b/project/templates/blog/post_detail.html deleted file mode 100644 index 7bd3588..0000000 --- a/project/templates/blog/post_detail.html +++ /dev/null @@ -1,77 +0,0 @@ -{% extends "blog/base_blog.html" %} - - -{% block title %}{{ object.title }}{% endblock %} -{% block body_class %}{{ block.super }} post_detail{% endblock %} -{% block body_id %}post_{{ object.id }}{% endblock %} - - -{% block content_title %} - <h2>{{ object.title }}</h2> - <p class="other_posts"> - {% if object.get_previous_by_publish %} - <a class="previous" href="{{ object.get_previous_post.get_absolute_url }}">« {{ object.get_previous_post }}</a> - {% endif %} - {% if object.get_next_by_publish %} - | <a class="next" href="{{ object.get_next_post.get_absolute_url }}">{{ object.get_next_post }} »</a> - {% endif %} - </p> -{% endblock %} - - -{% block content %} - {% load blog markup comments tagging_tags %} - - <h1>{{ object.title }}</h1> - <p class="date">{{ object.publish|date:"j F Y" }}</p> - - <div class="body"> - {{ object.body|markdown:"safe" }} - </div> - - {% tags_for_object object as tag_list %} - {% if tag_list %} - <p class="inline_tag_list"><strong>Related tags:</strong> - {% for tag in tag_list %} - {{ tag }}{% if not forloop.last %}, {% endif %} - {% endfor %} - </p> - {% endif %} - - {% get_comment_list for object as comment_list %} - {% if comment_list %} - <div id="comments"> - <a name="comments"></a> - <h3 class="comments_title">Comments</h3> - {% for comment in comment_list %} - {% if comment.is_public %} - <div class="comment"> - <h5 class="name"> - <a name="c{{ comment.id }}" href="{{ comment.get_absolute_url }}" title="Permalink to {{ comment.person_name }}'s comment" class="count">{{ forloop.counter }}</a> - {% if comment.user_url %}<a href="{{ comment.user_url }}">{{ comment.user_name }}</a>{% else %}{{ comment.user_name }}{% endif %} says... - </h5> - {{ comment.comment|urlizetrunc:"60"|markdown:"safe" }} - <p class="date">Posted at {{ comment.submit_date|date:"P" }} on {{ comment.submit_date|date:"F j, Y" }}</p> - </div> - {% endif %} - {% endfor %} - </div> - {% endif %} - {% if user.is_authenticated %} - {% if object.allow_comments %} - <div id="comment_form"> - {% render_comment_form for object %} - </div> - {% else %} - <div id="comment_form"> - <h3>Comments are closed.</h3> - <p>Comments have been close for this post.</p> - </div> - {% endif %} - {% else %} - <div id="comment_form"> - <h3>Comments are closed.</h3> - <p>Please login in to comment.</p> - </div> - {% endif %} -{% endblock %} diff --git a/project/templates/blog/post_list.html b/project/templates/blog/post_list.html deleted file mode 100644 index b536f47..0000000 --- a/project/templates/blog/post_list.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "blog/base_blog.html" %} - - -{% block title %}{% endblock %} -{% block body_class %}{{ block.super }} post_list{% endblock %} - - -{% block content_title %} - <h2>Post archive</h2> -{% endblock %} - - -{% block content %} - <div class="post_list"> - {% for post in object_list %} - <div> - <h3 class="title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3> - <p class="date">{{ post.publish|date:"Y F d" }}</p> - <p class="tease">{{ post.tease }}</p> - </div> - {% endfor %} - </div> - - {% if is_paginated %} - <p class="pagination"> - {% if has_next %} - <a class="older" href="?page={{ next }}">Older</a> - {% endif %} - {% if has_next and has_previous %} | {% endif %} - {% if has_previous %} - <a class="newer" href="?page={{ previous }}">Newer</a> - {% endif %} - </p> - {% endif %} -{% endblock %} |