'The (now deprecated) details page.  Content on this page
has been subsubmed by the presence of the LinkInfoBar on the
rightbox, so it is only useful for Admin-only wizardry.'

@disable_subreddit_css()
@validate(VAdmin(), thing=VByName('article'), oldid36=nop('article'), after=nop('after'), before=nop('before'), count=VCount('count'), listing_only=VBoolean('listing_only'))
def GET_details(self, thing, oldid36, after, before, count, listing_only):

    if (not thing):
        try:
            link = Link._byID36(oldid36)
            return self.redirect(('/details/' + link._fullname))
        except (NotFound, ValueError):
            abort(404)
    kw = {'count': count, 'listing_only': listing_only}
    if before:
        kw['after'] = before
        kw['reverse'] = True
    else:
        kw['after'] = after
        kw['reverse'] = False
    c.referrer_policy = 'always'
    page = DetailsPage(thing=thing, expand_children=False, **kw)
    if listing_only:
        return page.details.listing.listing().render()
    return page.render()
