Skip to content

Commit

Permalink
Do not load firstof tag from future tag library, it is available by d…
Browse files Browse the repository at this point in the history
…efault in Django 1.8+. Fixed syntax when calling the cycle tag. Fixes issues #22 and #23.
  • Loading branch information
azaghal committed Nov 1, 2016
1 parent 7319351 commit 6b09387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion zinnia_bootstrap/templates/comments/zinnia/entry/form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load comments i18n %}
{% load firstof from future %}
<form action="{% comment_form_target %}" method="post" id="comment-form" class="well form-horizontal">
<div>{% csrf_token %}</div>
{% if form.non_field_errors %}
Expand Down
6 changes: 3 additions & 3 deletions zinnia_bootstrap/templates/zinnia/entry_detail_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
{% block pingbacks-loop %}
<ol id="pingback-list" class="list-group">
{% for pingback in pingback_list %}
<li id="pingback-{{ pingback.pk }}" class="pingback vcard list-group-item {% cycle box1,box2 %}">
<li id="pingback-{{ pingback.pk }}" class="pingback vcard list-group-item {% cycle "box1" "box2" %}">
{% block pingback-info %}
<p class="pingback-info">
<a href="{{ pingback.url }}" rel="external nofollow"
Expand Down Expand Up @@ -111,7 +111,7 @@
{% block trackbacks-loop %}
<ol id="trackback-list" class="list-group">
{% for trackback in trackback_list %}
<li id="trackback-{{ trackback.pk }}" class="trackback vcard list-group-item {% cycle box1,box2 %}">
<li id="trackback-{{ trackback.pk }}" class="trackback vcard list-group-item {% cycle "box1" "box2" %}">
{% block trackback-info %}
<p class="trackback-info">
<a href="{{ trackback.url }}" rel="external nofollow"
Expand Down Expand Up @@ -158,7 +158,7 @@
<ol id="comment-list" class="list-group">
{% for comment in comment_list %}
<li id="comment-{{ comment.pk }}-by-{{ comment.user_name|slugify }}"
class="comment vcard list-group-item {% cycle box1,box2 %}{% if comment.user %} authenticated-comment{% if comment.user.is_staff %} staff-comment{% endif %}{% if comment.user.is_superuser %} superuser-comment{% endif %}{% endif %}">
class="comment vcard list-group-item {% cycle "box1" "box2" %}{% if comment.user %} authenticated-comment{% if comment.user.is_staff %} staff-comment{% endif %}{% if comment.user.is_superuser %} superuser-comment{% endif %}{% endif %}">
{% block comment-info %}
<p class="comment-info">
{% block comment-image %}
Expand Down

0 comments on commit 6b09387

Please sign in to comment.