Browse Source

Merge pull request #258 from kwijybo/static_post_url

static post links
Peter Justin 8 years ago
parent
commit
1b1349de00

+ 1 - 1
flaskbb/templates/forum/topic.html

@@ -65,7 +65,7 @@
                     <div class="post-meta clearfix">
                     <div class="post-meta clearfix">
                         <div class="pull-left">
                         <div class="pull-left">
                             <!-- Creation date / Date modified -->
                             <!-- Creation date / Date modified -->
-                            <a href="{{ generate_post_url(topic, post, posts.page) }}">
+                            <a href="{{ post.url }}">
                                 {{ post.date_created|format_date('%d %B %Y - %H:%M') }}
                                 {{ post.date_created|format_date('%d %B %Y - %H:%M') }}
                             </a>
                             </a>
                             {% if post.user_id and post.date_modified %}
                             {% if post.user_id and post.date_modified %}

+ 1 - 1
flaskbb/templates/forum/topic_horizontal.html

@@ -66,7 +66,7 @@
                     <div class="post-meta clearfix">
                     <div class="post-meta clearfix">
                         <div class="pull-left">
                         <div class="pull-left">
                             <!-- Creation date / Date modified -->
                             <!-- Creation date / Date modified -->
-                            <a href="{{ generate_post_url(topic, post, posts.page) }}">
+                            <a href="{{ post.url }}">
                                 {{ post.date_created|format_date('%d %B %Y - %H:%M') }}
                                 {{ post.date_created|format_date('%d %B %Y - %H:%M') }}
                             </a>
                             </a>
                             {% if post.user_id and post.date_modified %}
                             {% if post.user_id and post.date_modified %}