Просмотр исходного кода

PEP8 fix and fixed a small bug that prevented the pagination to be generated.

sh4nks 11 лет назад
Родитель
Сommit
d7b0769ea5
2 измененных файлов с 0 добавлено и 3 удалено
  1. 0 1
      flaskbb/forum/views.py
  2. 0 2
      flaskbb/templates/forum/forum.html

+ 0 - 1
flaskbb/forum/views.py

@@ -101,7 +101,6 @@ def view_category(category_id):
     else:
         # we do not need to join the ForumsRead because the user isn't
         # signed in
-
         forum_query = Category.query.\
             filter(Category.id == category_id).\
             join(Forum, Category.id == Forum.category_id).\

+ 0 - 2
flaskbb/templates/forum/forum.html

@@ -10,11 +10,9 @@
     <li class="active">{{ forum[0].title }}</li>
 </ol>
 
-{% if forum.topics %}
 <div class="pull-left" style="padding-bottom: 10px">
     {{ render_pagination(topics, url_for('forum.view_forum', forum_id=forum[0].id)) }}
 </div> <!-- end span pagination -->
-{% endif %}
 
 {% if current_user|post_topic(forum[0]) and not forum[0].is_category %}
 <div class="pull-right" style="padding-bottom: 10px">