Don't make a traffic tabmenu item on LinkInfoPage.

Route was broken and there's a link to traffic on the Link.
This commit is contained in:
bsimpson63
2013-06-14 19:42:16 -04:00
committed by Ricky Ramirez
parent 84c6d101a4
commit f734be79b2

View File

@@ -1197,12 +1197,6 @@ class LinkInfoPage(Reddit):
if c.user_is_admin:
buttons.append(NamedButton("details", dest="/details/"+self.link._fullname))
# should we show a traffic tab (promoted and author or sponsor)
if (self.link.promoted is not None and
(c.user_is_sponsor or
(c.user_is_loggedin and c.user._id == self.link.author_id))):
buttons += [info_button('traffic')]
toolbar = [NavMenu(buttons, base_path = "", type="tabmenu")]
if not isinstance(c.site, DefaultSR) and not c.cname: