docs: def legislator_inactive(request, abbr, legislator):
      '''
      Context:
          - vote_preview_row_template
          - old_roles
          - abbr
          - metadata
          - legislator
          - sources
          - sponsored_bills
          - legislator_votes
          - has_votes
          - nav_active
  
      Templates:
          - billy/web/public/legislator.html
          - billy/web/public/vote_preview_row.html
      '''
      sponsored_bills = legislator.sponsored_bills(
          limit=6, sort=[('action_dates.first', pymongo.DESCENDING)])
  
      legislator_votes = list(legislator.votes_6_sorted())
      has_votes = bool(legislator_votes)
  
      return render(
          request, templatename('legislator'),
          dict(vote_preview_row_template=templatename('vote_preview_row'),
               old_roles=legislator.old_roles_manager,
               abbr=abbr,
               metadata=legislator.metadata,
               legislator=legislator,
               sources=legislator['sources'],
               sponsored_bills=list(sponsored_bills),
               legislator_votes=legislator_votes,
               has_votes=has_votes,
               nav_active='legislators'))