def get(self, entity_id=None):
    """HTML GET handler.
    
    Check the query parameters for the ID of the monster to be displayed.
    If found, disply that monster using the standard template."""
    
    template_values = self.build_template_values()
    
    if entity_id:
      try:
        monster = Monster.get_by_id_safe(int(entity_id), template_values[handlers.base.PROFILE_KEY])
      except __HOLE__:
        return self.not_found()
      if not monster:
        self.not_found()
        return
      template_values['monster'] = monster
    else:
      self.redirect("/view/"+str(Monster.all().order("-creation_time").get().key().id()))
      return
    
    if handlers.base.PROFILE_KEY in template_values:
      template_values['vote'] = Vote.all().filter("monster = ", template_values['monster']).filter("voter = ", template_values[handlers.base.PROFILE_KEY]).get()
    
    template_values['edit_url'] = self.uri_for('monster.edit', entity_id=r'%s')
    template_values['delete_url'] = self.uri_for('monster.delete', entity_id=entity_id)
    template_values['profile_url'] = self.uri_for('profile', profile_id=monster.creator.key().id())
    
    template = configuration.site.jinja_environment.get_template('monster/view.html')
    self.response.write(template.render(template_values))
dataset/ETHPy150Open Sagelt/dungeon-world-codex/handlers/monster.py/ViewHandler.get