This repository has been archived by the owner on Sep 3, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
171 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends "blog/base_blog_archive.html" %} | ||
|
||
{% block title %}{{ block.super }}: Blog posts written by {% if author.get_full_name %}{{ author.get_full_name }}{% else %}{{ author }}{% endif %}{% endblock %} | ||
|
||
{% block content_title %} | ||
<h2>Blog posts <a href="{% url blog_authors_list %}">written</a> by {% if author.get_full_name %}{{ author.get_full_name }}{% else %}{{ author }}{% endif %}</h2> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div id="blog_posts"> | ||
{% for post in posts.object_list %}{% include "blog/_post.html" %}{% endfor %} | ||
</div> | ||
|
||
{% if posts.has_other_pages %} | ||
<ul id="pagination"> | ||
{% if posts.has_previous %} | ||
<li class="previous on"><a href="{% url blog_categories_detail_paginated category.slug posts.previous_page_number %}" title="Page {{ posts.previous_page_number }}">Previous</a></li> | ||
{% else %} | ||
<li class="previous off">Previous</li> | ||
{% endif %} | ||
{% for page in posts.page_range %} | ||
{% ifequal page posts.page_number %} | ||
<li class="active">{{ page }}</li> | ||
{% else %} | ||
<li><a href="{% url blog_categories_detail_paginated category.slug page %}">{{ page }}</a></li> | ||
{% endifequal %} | ||
{% endfor %} | ||
{% if posts.has_next %} | ||
<li class="next on"><a href="{% url blog_categories_detail_paginated category.slug posts.next_page_number %}" title="Page {{ posts.next_page_number }}">Next</a></li> | ||
{% else %} | ||
<li class="next off">Next</li> | ||
{% endif %} | ||
</ul> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "blog/base_blog_archive.html" %} | ||
|
||
{% block title %}{{ block.super }}: Blog Authors{% endblock %} | ||
|
||
{% block content_title %} | ||
<h2>Blog Authors</h2> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<ul id="blog_authors"> | ||
{% for author in authors %} | ||
<li><a href="{% url blog_authors_detail author.username %}">{% if author.get_full_name %}{{ author.get_full_name }}{% else %}{{ author }}{% endif %}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ | |
|
||
'django_markup', | ||
'taggit', | ||
|
||
'django_graffle', | ||
|
||
'blog', | ||
] | ||
ROOT_URLCONF = 'blog.testurls' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters