'Returns HTML for embedding an item in a page.'

def _get_embed_html(self, trans, item_class, item_id):

    item_class = self.get_class(item_class)
    if (item_class == model.History):
        return self._get_embedded_history_html(trans, item_id)
    elif (item_class == model.HistoryDatasetAssociation):
        decoded_id = self.decode_id(item_id)
        dataset = self.hda_manager.get_accessible(decoded_id, trans.user)
        dataset = self.hda_manager.error_if_uploading(dataset)
        dataset.annotation = self.get_item_annotation_str(trans.sa_session, dataset.history.user, dataset)
        if dataset:
            data = self.hda_manager.text_data(dataset)
            return trans.fill_template('dataset/embed.mako', item=dataset, item_data=data)
    elif (item_class == model.StoredWorkflow):
        workflow = self.get_stored_workflow(trans, item_id, False, True)
        workflow.annotation = self.get_item_annotation_str(trans.sa_session, workflow.user, workflow)
        if workflow:
            self.get_stored_workflow_steps(trans, workflow)
            return trans.fill_template('workflow/embed.mako', item=workflow, item_data=workflow.latest_workflow.steps)
    elif (item_class == model.Visualization):
        return self._get_embedded_visualization_html(trans, item_id)
    elif (item_class == model.Page):
        pass
