1. Gregory Petukhov
  2. pybb-templates-fluxbb

Commits

denger  committed a7f2fc2

Fix permalink bug

  • Participants
  • Parent commits 0392bb8
  • Branches default

Comments (0)

Files changed (1)

File pybb_templates_fluxbb/templates/pybb/topic.html

View file
 
 <div class="main-content main-topic" id="forum{{ topic.forum.pk }}">
     {% for post in page.object_list %}
-        <div class="post {% cycle odd,even %} {% ifequal topic.head post %}firstpost{% else %}replypost{% endifequal %} topicpost" id="p{{ post.pk }}">
+        <div class="post {% cycle odd,even %} {% ifequal topic.head post %}firstpost{% else %}replypost{% endifequal %} topicpost" id="post-{{ post.pk }}">
 			<div class="posthead">
                 <h3 class="hn post-ident">
                     <span class="post-num">{{ page.start_index|add:forloop.counter0 }}</span>
                         {% if moderator or post|pybb_posted_by:user %}
                         <span class="delete-post">
                             <a onclick="pybb_delete_post('{% url pybb_delete_post post.id %}',
-                            'p{{ post.pk }}', '{% trans 'Delete post?' %}'); return false;"
+                            'post-{{ post.pk }}', '{% trans 'Delete post?' %}'); return false;"
                             href="{% url pybb_delete_post post.id %}">{% trans "delete" %}</a>
                         </span>
                         {% endif %}