This repository has been archived by the owner on Jan 22, 2021. 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.
Merge branch 'master' of github.com:nathanborror/django-basic-apps
- Loading branch information
Showing
17 changed files
with
243 additions
and
47 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,19 +1,20 @@ | |||
{% extends "blog/base_blog.html" %} | {% extends "blog/base_blog.html" %} | ||
|
|
||
{% load i18n %} | |||
|
|
||
{% block title %}Post categories{% endblock %} | {% block title %}{% trans "Post categories" %}{% endblock %} | ||
{% block body_class %}{{ block.super }} category_list{% endblock %} | {% block body_class %}{{ block.super }} category_list{% endblock %} | ||
|
|
||
|
|
||
{% block content_title %} | {% block content_title %} | ||
<h2>Post categories</h2> | <h2>{% trans "Post categories" %}</h2> | ||
{% endblock %} | {% endblock %} | ||
|
|
||
|
|
||
{% block content %} | {% block content %} | ||
<ul class="link_list"> | <ul class="link_list"> | ||
{% for category in object_list %} | {% for category in object_list %} | ||
<li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li> | <li><a href="{{ category.get_absolute_url }}" title="{% trans "View posts in this category" %}">{{ category }}</a></li> | ||
{% endfor %} | {% endfor %} | ||
</ul> | </ul> | ||
{% endblock %} | {% 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,19 +1,20 @@ | |||
{% extends "blog/base_blog.html" %} | {% extends "blog/base_blog.html" %} | ||
|
|
||
{% load i18n %} | |||
|
|
||
{% block title %}Post archive for {{ year }}{% endblock %} | {% block title %}{% trans "Post archive for" %} {{ year }}{% endblock %} | ||
{% block body_class %}{{ block.super }} post_archive_year{% endblock %} | {% block body_class %}{{ block.super }} post_archive_year{% endblock %} | ||
|
|
||
|
|
||
{% block content_title %} | {% block content_title %} | ||
<h2>Post archive for {{ year }}</h2> | <h2>{% trans "Post archive for" %} {{ year }}</h2> | ||
{% endblock %} | {% endblock %} | ||
|
|
||
|
|
||
{% block content %} | {% block content %} | ||
<ul class="link_list"> | <ul class="link_list"> | ||
{% for month in date_list %} | {% for month in date_list %} | ||
<li><a href="{% url blog_index %}{{ year }}/{{ month|date:"b" }}/">{{ month|date:"F" }}</a></li> | <li><a href="{% url blog_index %}{{ year }}/{{ month|date:"b" }}/" title="{% trans "View items posted this month" %}">{{ month|date:"F" }}</a></li> | ||
{% endfor %} | {% endfor %} | ||
</ul> | </ul> | ||
{% endblock %} | {% 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,19 +1,20 @@ | |||
{% extends "blog/base_blog.html" %} | {% extends "blog/base_blog.html" %} | ||
|
|
||
{% load i18n %} | |||
|
|
||
{% block title %}Post tags{% endblock %} | {% block title %}{% trans "Post tags" %}{% endblock %} | ||
{% block body_class %}{{ block.super }} tag_list{% endblock %} | {% block body_class %}{{ block.super }} tag_list{% endblock %} | ||
|
|
||
|
|
||
{% block content_title %} | {% block content_title %} | ||
<h2>Post tags</h2> | <h2>{% trans "Post tags" %}</h2> | ||
{% endblock %} | {% endblock %} | ||
|
|
||
|
|
||
{% block content %} | {% block content %} | ||
<ul class="link_list"> | <ul class="link_list"> | ||
{% for category in object_list %} | {% for tag in object_list %} | ||
<li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li> | <li><a href="{{ tag.get_absolute_url }}" title="{% trans "View posts tagged" %} {{ tag }}">{{ tag }}</a></li> | ||
{% endfor %} | {% endfor %} | ||
</ul> | </ul> | ||
{% endblock %} | {% 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
{# The reason that we did not indent this code is because if we did, Markdown would treat it as code rather than HTML. #} | |||
|
|||
{% load i18n %} | |||
|
|||
{% if object %} | |||
|
|||
<div{% if class %} class="{{ class }}"{% endif %}> | |||
<p class="photo"> | |||
<a href="{% url photo_detail object.slug %}" title="{% trans "View the full image" %}"><img src="{{ settings.MEDIA_URL }}{{ object.photo }}" alt="{{ object }}" /></a> | |||
</p> | |||
{% if object.taken_by %}<p class="taken_by">{% trans "By" %} {{ object.taken_by }}</p>{% endif %} | |||
{% if object.description %}<p class="description">{{ object.description }}</p>{% endif %} | |||
</div> | |||
|
|||
{% else %} | |||
|
|||
<div{% if class %} class="{{ class }}"{% endif %}> | |||
{% for object in object_list %} | |||
<p class="photo"> | |||
<a href="{% url photo_detail object.slug %}" title="{% trans "View the full image" %}"><img src="{{ settings.MEDIA_URL }}{{ object.photo }}" alt="{{ object }}" /></a> | |||
</p> | |||
{% if object.taken_by %}<p class="taken_by">{% trans "By" %} {{ object.taken_by }}</p>{% endif %} | |||
{% if object.description %}<p class="description">{{ object.description }}</p>{% endif %} | |||
{% endfor %} | |||
</div> | |||
|
|||
{% endif %} |
39 changes: 39 additions & 0 deletions
39
basic/relationships/templates/relationships/relationship_followers.html
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,39 @@ | |||
{% extends "relationships/base_relationships.html" %} | |||
|
|||
|
|||
{% block title %}{{ block.super }} | Followers{% endblock %} | |||
{% block body_class %}{{ block.super }} relationship_followers{% endblock %} | |||
|
|||
|
|||
{% block content_title %} | |||
<h2>Followers</h2> | |||
{% endblock %} | |||
|
|||
|
|||
{% block content %} | |||
{% load relationships %} | |||
<ul> | |||
{% for follower in page.object_list %} | |||
<li> | |||
{{ follower.username }} - | |||
{% if user|follows:follower %} | |||
<a href="{% url relationship_unfollow to_user_id=follower.id %}">Unfollow</a> | |||
{% else %} | |||
<a href="{% url relationship_follow to_user_id=follower.id %}">Follow</a> | |||
{% endif %} | |||
</li> | |||
{% endfor %} | |||
</ul> | |||
|
|||
{% if page.has_other_pages %} | |||
<p class="pagination"> | |||
{% if page.has_previous %} | |||
<a class="older" href="?page={{ page.previous_page_number }}">Previous</a> | |||
{% endif %} | |||
{% if page.has_next and page.has_previous %} | {% endif %} | |||
{% if page.has_next %} | |||
<a class="newer" href="?page={{ page.next_page_number }}">Next</a> | |||
{% endif %} | |||
</p> | |||
{% endif %} | |||
{% endblock %} |
Oops, something went wrong.