code: def available(self):
          
          url = api.get_url(self.context)
          # render on the portal root
          if self.context == api.get_portal():
              return True
          # render on the front-page
          if url.endswith("/front-page"):
              return True
          # render for manage_results
          if url.endswith("/manage_results"):
              return True
          return False
docs: Control availability of the viewlet