Permalink
Browse files

Show top 10 topics in article sidebar.

Instead of the topics assigned to the article.
  • Loading branch information...
1 parent baadd2f commit 9e3c34f958af3327b45466dc0020f1d15350fd35 @rlr rlr committed Sep 25, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 apps/wiki/templates/wiki/document-new.html
  2. +1 −1 apps/wiki/views.py
@@ -60,7 +60,7 @@ <h1 class="product-title cf"><img src="{{ MEDIA_URL }}img/blank.png" alt="" clas
{% endif %}
{{ document_tools(doc, parent, user, 'article', settings) }}
{{ related_articles(related, document) }}
- {{ topic_sidebar(topics, product) }}
+ {{ topic_sidebar(topics[:10], product) }}
{% endblock %}
{% block breadcrumbs %}
View
@@ -164,7 +164,7 @@ def document(request, document_slug, template=None):
else:
product = products[0]
- topics = doc.get_topics()
+ topics = Topic.objects.filter(visible=True)
data = {'document': doc, 'redirected_from': redirected_from,
'related': related, 'contributors': contributors,

0 comments on commit 9e3c34f

Please sign in to comment.