Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.9 compatibility templates #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ INSTALLATION
============

* For installation instructions, see `the docs <http://django-planet.readthedocs.org/>`_.

Note for Django 1.9 : you have to clone the `django-pagination-py3 repository <https://github.com/matagus/django-pagination-py3>`_ as
the pip version is not yet compatible with Django 1.9.

Contribute
==========
Expand Down
2 changes: 1 addition & 1 deletion planet/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load staticfiles i18n %}
{% load url from future %}

<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}">
<head>
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/authors/blocks/list_for_tag.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
{% load url from future %}
{% ifnotequal authors|length 1 %}
<ul class="nav nav-list authors list">
<li class="nav-header">{% trans "Authors talking about" %} {{ tag|safe }}</li>
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/authors/detail.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags tagging_tags planet_tags %}
{% load url from future %}

{% block head_title %}{{ author.name }}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/authors/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags planet_tags %}
{% load url from future %}

{% block head_title %}{% trans 'Authors list' %}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/authors/list_for_tag.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags %}
{% load url from future %}

{% block head_title %}{% trans 'Authors under tag' %} {{ tag|safe }}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/base.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends 'site_base.html' %}
{% load i18n tagging_tags planet_tags %}
{% load url from future %}

{% block head_title_base %}{% block head_title %}{% endblock %}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/blogs/detail.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags planet_tags %}
{% load url from future %}

{% block head_title %}{% trans "Blog" %}: {{ blog.title }}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/blogs/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags %}
{% load url from future %}

{% block head_title %}{% trans "Blogs list" %}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/feeds/add.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n %}
{% load url from future %}

{% block head_title %}{% trans "Add a New Feed" %}{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
{% load url from future %}

<br/>
<ul class="nav nav-list">
<li class="nav-header">{% trans 'Feeds' %}</li>
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/feeds/detail.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags tagging_tags planet_tags %}
{% load url from future %}

{% block head_title %}{% trans "Feed" %}: {{ feed.title }}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/feeds/list_for_tag.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags %}
{% load url from future %}

{% block head_title %}{% trans "Feeds under tag" %} {{ tag|safe }}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/posts/detail.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n planet_tags %}
{% load url from future %}

{% block head_title %}
{{ post.title|safe }}
Expand Down
2 changes: 1 addition & 1 deletion planet/templates/planet/posts/details.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
{% load url from future %}

<h2>
<a href="{{ post.url }}" title="{% trans 'Read ' %} {{ post.title|safe }}"
onclick="javascript: _gaq.push(['_trackEvent', 'Title Link', 'Click', 'long-content']);">
Expand Down
2 changes: 1 addition & 1 deletion planet/templates/planet/posts/full_details.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
{% load url from future %}

<div class="date">{{ post.date_modified|date:"M d Y" }}</div>
<h1>{{ post.title|striptags|safe }}</h1>
<table class="blog details table table-hover table-bordered">
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/posts/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags planet_tags %}
{% load url from future %}

{% block head_title %}
{% trans 'django-planet: django blog news aggregator' %}{{ block.super }}
Expand Down
2 changes: 1 addition & 1 deletion planet/templates/planet/posts/short.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load i18n %}
{% load url from future %}

<h2>
<a href="{{ post.url }}" title="{% trans 'Read ' %} {{ post.title|safe }}"
onclick="javascript: _gaq.push(['_trackEvent', 'Title Link', 'Click', 'short-content']);">
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/blocks/authors_cloud.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
{% load url from future %}
{% if tags_cloud %}
<h4>{% trans "Tag cloud" %}</h4>
<ul class="nav nav-list">
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/blocks/blogs_cloud.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
{% load url from future %}
{% if tags_cloud %}
<h4>{% trans "Tag cloud" %}</h4>
<div class="tags cloud">
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/blocks/cloud.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
{% load url from future %}
<h4>{% trans "Tag cloud" %}</h4>
<div class="tags cloud">
{% for tag in tags_cloud %}
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/blocks/feeds_cloud.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
{% load url from future %}
{% if tags_cloud %}
<h4>{% trans "Tag cloud" %}</h3>
<div class="tags cloud">
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/blocks/related_list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load i18n %}
{% load url from future %}
{% if related_tags %}
<ul class="nav nav-list tags related">
<li class="nav-header"><h3>{% trans "Related tags" %}</h3></li>
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/cloud.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags %}
{% load url from future %}

{% block head_title %}{% trans "Tags cloud" %}{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/detail.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags tagging_tags planet_tags %}
{% load url from future %}

{% block head_title %}
{{ tag|safe }}: {% trans "django blog posts news" %}
Expand Down
1 change: 0 additions & 1 deletion planet/templates/planet/tags/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "planet/base.html" %}
{% load i18n pagination_tags planet_tags %}
{% load url from future %}

{% block head_title %}{% trans "List of tags and categories" %}{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion planet/templates/site_base.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{% extends "base.html" %}
{% extends "base.html" %}