4
1

Across the top there are questions, tags, users, badges, unanswered tabs. I want to remove the "badges" tab as my implementation doesn't really need them at the moment.

I can see:

{% loopregistry page_top_tabs %}{% spaceless %}
    <a id="nav_{{ tab_name }}"{% ifequal tab tab_name %} class="on"{% endifequal %} href="{{ tab_url }}" >{{ tab_title }}</a>
{% endspaceless %}{% endloopregistry %}

But I can't see where it gets the page_top_tabs to iterate through...

Thanks

asked 06 Jul '10, 11:27

Martin's gravatar image

Martin
1562510
accept rate: 33%

edited 06 Jul '10, 11:35


I was helped out by matt in the jabber channel. Here's what solved it:

===================================================================
--- forum/views/meta.py (revision 488)
+++ forum/views/meta.py (working copy)
@@ -75,7 +75,7 @@
     'next' : get_next_url(request),
     }, context_instance=RequestContext(request))

-@decorators.render('badges.html', 'badges', _('badges'), weight=300)
+@decorators.render('badges.html', 'badges', _('badges'), weight=300, tabbed=False)
 def badges(request):
     badges = [b.ondb for b in sorted(BadgesMeta.by_id.values(), lambda b1, b2: cmp(b1.name, b2.name))]
link

answered 06 Jul '10, 14:22

Martin's gravatar image

Martin
1562510
accept rate: 33%

How can I remove de Unanswered tab ? Thanks

(02 Aug '10, 17:07) cristianlp
1

Go to /forum/views/readers.py

change

@decorators.render('questions.html', 'unanswered', _('unanswered'), weight=400)

to

@decorators.render('questions.html', 'unanswered', _('unanswered'), weight=400, tabbed=False)

(18 May '11, 01:23) jimin
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×9
×8
×4

Asked: 06 Jul '10, 11:27

Seen: 598 times

Last updated: 18 May '11, 01:23

powered by OSQA